Scripted way of getting the currently used parameters over the timeline
I have an issue where I need to save an animated Shaping Preset, but I don't wan to save ALL the shape parameters.
I got so excited when I discovered that, when saving a shaping preset, you can right-click and "Ckeck All Modified" as this sounded exactly like what I needed.
However, my excitement soon turned to frustration when I realised that this was only checking the parameters that were modied on the first frame.. not ones which are modified throughout the timeline :(
So, I was thinking that perhaps what I need could be achieved with scripting but I fear that looping over every property of every node for every frame of the timeline and figuring out if it's been modified or not will be incrediably slow.
Is there an existing way to get a list of all properties that get modified throughout the timeline with scripting?
Or, is there at least a function to return all "currently used" parameters for a given frame?
Thanks
Comments
I don't think there is a global
array Scene.getKeyedpProperties
but if you get the property list I would think you could use hasKeyes() on it, without needing to check every time interval (bear in mind that keys do not have to hit frames, though they generally will). http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/object_index/property_dz#a_1a93bc6afb725968ecde1086c0c4deb7d7
Thanks you.
That sounds like a good place to start. I will give it a try.