In general it is supposed to work like this:
var oOp = Selection(0);
var eParams = new Enumerator(oOp.Parameters);
while(!eParams.atEnd()){
var oName = eParams.item().Name;
var oDefault = eParams.item().Default;
LogMessage(oName + ": " + oDefault);
eParams.moveNext();
}
However, surprisingly for many of the operators the SPDL does not seem
to define the default values we see when applying the operator. This
seems to happen through the command invoked to create the operator,
which is not accessable on this level, I think. Hope this helps a bit...
-André
Matthias Worch wrote:
How do I read out the default values of various operators? I don't mean applying an operator to a specific object and doing a getValue on that operator (that might be a workaround, though...) Each operator comes with default values that XSI uses automatically, is there a way to access those?
--
Matthias Worch
http://www.worch.com
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi