yhleung
28-10-2007 14:35:11
I find that the "oExporter.setAnimProperties" function has a different
calling conversion with what is mentioned in the ofusion pro manual.
document said:
getAnimProperties <string> <fpvalue>
Gets the current animation properties
but maxscript listener complain that it should be 3 parameters instead of 2.
p.s. I am using ofusion 1.8.6
Lioric
29-10-2007 15:18:05
From your post is not clear if you refer to the getAnim or setAnim method
About the setAnim method, it seems the documentation was not updated, we will review this
All batch animation commands now use an "index" parameter to define what animation entry (from the animation list) the method will work on or be applied to
The new "addAnimation" method will return an index value of the added/created animation, this value needs to be used with the "setAnimProperties" to determine the animation to set its properties to
A sample usage of the new method is:
local animIndex = oExporter.addAnimation "Jako1"
oExporter.setAnimProperties animIndex "FrameStart" 165
oExporter.setAnimProperties animIndex "FrameEnd" 247
animIndex = oExporter.addAnimation "paska"
oExporter.setAnimProperties animIndex "FrameStart" 835
oExporter.setAnimProperties animIndex "FrameEnd" 853
oExporter.saveScene "c:\\temp\\sampleScene\\test.OSM" 0 1 0