Change subdivision and Resolution level
semidieu
Posts: 26
Two more things... I searched in the documentation, but I can't find it. I searched also in the forum (also the old forum) with no luck...
How do you get (and modify) the subdivision level and the resolution level from a figure ?
Comments
Sorry I am unsure what you mean so I will start at the begining. :)
If a figure as in the case of Genesis is subdivided then the resolution details can be found under the Parameters Pane when the figure/prop is selected.
Let us know if this is not what you are asking for or have futher questions about this.
Hi :)
I could have been more precise. I mean how to get these two properties using scripting :)
Forgot that it is not a scripting forum, but the dev forum :)
I'm not sure, but looking at the DS3 scripting docs try (with errror checking added)
oShape = oNode.getObject().getCurrentShape();
which should be some derivative of DzSubDBase, but then I run into a brick wall as the scripting docs are talking about settings from the older implementation when there was a render level setting - but you could check the members of whatever type of object you get for possibilities.
How ? Is it possible to check this directly in the Scripting IDE ?
Another question - is it possible to get and set the values from the 'Property' object ? Here is a code (taken from Node Property.dsa in the samples and a little bit edited).
This script will identify and display the Subdivision and Resolution level property. But I can't find a way to get it's value or set it's value!?!!
Find out what type of property it is with className(), but you will probably want getValueChannel.
As for getting the members of an object, the trick Rob showed was to use:
Int properties and Enum properties, which what the properties you are looking for are, have setValue, getValue functions.