How to get all the Properties of g2 figure?

I found that the function node->getNumProperties() can't give a complete Properties on g2 figure,any solution?

Comments

  • dtammdtamm Posts: 126
    edited December 1969

    578276864 said:
    I found that the function node->getNumProperties() can't give a complete Properties on g2 figure,any solution?

    Some properties are on the object of a node, if it has an object.
    node->getObject()->getNumProperties()

  • rbtwhizrbtwhiz Posts: 2,267
    edited December 1969

    As there may be properties owned by any DzElement derived class, if your aim is to get at all properties associated with a given node, I would suggest using DzPropertyGroupTree (see DzElement::getPropertyGroups()) and recursively iterating over the DzPropertyGroup hierarchy. The Node Properties script sample shows the gist of how they are used.

    -Rob

Sign In or Register to comment.