[Closed] Custom Animation File Format
Hello,
I’m trying to write a custom animation file format for the project I’m working on. I am looking for a way to find all animatable parameters on an object.
While getting the parameters off of the base object is fairly easy, I can’t seem to find a way to get a list of parameters off of a custom attribute. Using the showparameters function on a custom attribute returns “False”.
For example. Take a box and use the parameter editor to add two sliders to the box. Now add an attribute holder and add two sliders.
The value of these sliders are animatable values, but I can’t find a way to access them without referencing them by name eg: $Box01.modifiers[1].param3
I need a way to feed the node reference into a function and get out all wireable parameters. Does anyone know a way to do this? Is this even possible?
Thanks in advance,
- Z
Hey Zach, you need to get the def first then you can use getSubAnimNames on the def, so…
def=custAttributes.get node index
getSubAnimNames def
Also you say you are using showparameters but there is no such command that I know of. Using show properties will get all the properties and not just the animatable ones. using getSubAnimNames with .nubSubs will allow you to get the sub anim tracks and recursively walk the hierarchy.
I just thought, I posted a thread here some one of a script that wrote out much of the animation data on objects to an XML file. Don’t know what the thread was called but I’m sure that you can find it.
Thanks paul, that`s quite helpful.
And yes, I was using showparameters.
I`ll take a look through the archives for your xml thread.