The LoadSaveAnimation Interface

The LoadSaveAnimation Interface

Anonymous
Not applicable
292 Views
1 Reply
Message 1 of 2

The LoadSaveAnimation Interface

Anonymous
Not applicable
Hello guys,

I can't seem to understand the proper way to pass attributes to the LoadSaveAnimation Interface,
Specifically the the saveAnimation method, it works fine when I operate it with it's default attributes,
But what I don't know how to do is to save animation with the 'Animated Tracks' attribute as false (unchecked), and the 'Keyable tracks' attribute as true (checked).

I tried:

LoadSaveAnimation.saveAnimation ThePath TheNodeArray #() #() animatedTracks:false keyableTracks:true

(Where 'ThePath' is the URL string and 'TheNodeArray' is the array of nodes)

It performs the method but when there is a node with no animation it prompts "No Tracks To save!"
Something that shouldn't happen if the 'Animated Tracks' attribute is false and the 'Keyable tracks' attribute is true.

I also tried to create string arrays with the names of the attributes and the values but just don't get how it should be written.


Thanks for any reply,


Oded
0 Likes
293 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
yes i am having the same problem right now as well... anyone know if there's any new news about this one?

Hello guys,

I can't seem to understand the proper way to pass attributes to the LoadSaveAnimation Interface,
Specifically the the saveAnimation method, it works fine when I operate it with it's default attributes,
But what I don't know how to do is to save animation with the 'Animated Tracks' attribute as false (unchecked), and the 'Keyable tracks' attribute as true (checked).

I tried:

LoadSaveAnimation.saveAnimation ThePath TheNodeArray #() #() animatedTracks:false keyableTracks:true

(Where 'ThePath' is the URL string and 'TheNodeArray' is the array of nodes)

It performs the method but when there is a node with no animation it prompts "No Tracks To save!"
Something that shouldn't happen if the 'Animated Tracks' attribute is false and the 'Keyable tracks' attribute is true.

I also tried to create string arrays with the names of the attributes and the values but just don't get how it should be written.


Thanks for any reply,


Oded
0 Likes