listing out properties.

Fugazi1968Fugazi1968 Posts: 29
edited December 1969 in Daz Script Developer Discussion

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

  • Richard HaseltineRichard Haseltine Posts: 101,507
    edited December 1969

    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.

  • Fugazi1968Fugazi1968 Posts: 29
    edited December 1969

    Thank you very much Richard, that will help tremendously

    John

  • rbtwhizrbtwhiz Posts: 2,267
    edited December 1969

    Review the Node Properties sample.

    -Rob

  • Fugazi1968Fugazi1968 Posts: 29
    edited December 1969

    Brilliant Rob, that will be very useful indeed.

    John

Sign In or Register to comment.