Update API and animation copy

47 views
Skip to first unread message

otta...@gmail.com

unread,
Jan 16, 2017, 11:33:09 AM1/16/17
to CoSpaces
Hi, I was wondering if your API documentation was up to date https://cospaces.io/api/, the reason I ask is because it is missing "focusOn" and if that is missing I was wondering what else might not be listed.   Another question is under the  script section for an object what is the animation copy currently for if we currently cannot script animation.

benj...@delightex.com

unread,
Jan 17, 2017, 4:55:10 AM1/17/17
to CoSpaces
Hi,

yes there are methods which are not listed in the API documentation. The reason why these methods are not public is that they're most likely going to be changed, replaced, renamed or even removed. If now users are using these methods in their scripts, it can be that their scripts will break with a future update. In this case it's very difficult for the user to find out what happened.

On the other hand the methods listed in the API documentation should not change. They can be deprecated, but they should still work. Using these methods the script should always run even if we update the API.

Regarding the second question. Yes you're right :) The item.animationState() method is pretty useless without other animation service methods. But this will change in the future.

The CoSpaces Scripting feature is still in "Early Access". That means that there can and will be a lot of changes in short time periods.

Benjamin

otta...@gmail.com

unread,
Jan 17, 2017, 12:46:36 PM1/17/17
to CoSpaces
Hi Benjamin, thanks for your response, will be looking forward to the updates to the API.
Reply all
Reply to author
Forward
0 new messages