Create new property on a node to store current position
I have a hierachy of Camera and Light nodes that I want to store their current x,y,z position before I alter them. So that I can restore them later.
So I want to create a new DzVec3 'property' to hold them.
But I can't seem to create a new property that lasts beyond the lifetime of my script.
Can someone please point me in the right direction.
--TromNek

Comments
See http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/object_index/simpleelementdata_dz and http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/object_index/float3property_dz : I have used Element data in a similar way in some of my scripts.
Thanks. I'm not having much luck adding a DzSimpleElementData to a camera or light.
I seem to be getting somewhere adding a 'Property'. So I'm going to try adding some DzFloatProperty stuff and see if I can make that work for me.
I think I got everything working (somewhat). My problem was that I don't really understand the Daz Studio Object Model. And I wasn't getting the proper references to what I needed.
This started with my playing with DS6-2025, where lights need to be 'Visible In Viewport' for them to light up a scene. And they were cluttering up my viewport when trying to work on a scene.
Someone mentioned a trick to scale them down to 2%. That worked to unclutter the scene. But then all the lights moved because their parents got scaled down. So, ....
My script saves the node's getWSPos() as a new property for every light and camera in my hierachy for every key frame that has an X, Y or Z Translate.
Then I can scale them all down to 2%, then use the script to restore the setWSPos() for each of those key frames. And everything is back to normal.
Changing back to 100% works this way also.
Thanks again Richard for you help !