listing out properties.
Fugazi1968
Posts: 29
Good evening all
Forgive my noob question, but is there a way to list out the properties of an object via a script?
var nodes = Scene.getNodeList();
var obj;
for (var n=0 ; n
{
obj = nodes[n].getObject();
(loop in here to print out each property)
}
I hope that makes sense.
Many thanks
John
Comments
Anything derived from DzElement has a getPropertyList () method that returns an array. DzObject has getNumModifiers () which returns a number, you can then iterate over that and use getModifier ( Number ) to get the modifiers for the mesh. Don't forget to check that obj is valid before trying to do anything with it.
Thank you very much Richard, that will help tremendously
John
Review the Node Properties sample.
-Rob
Brilliant Rob, that will be very useful indeed.
John