Re: Reading out operator defaults

Date : Tue, 06 Feb 2007 10:14:43 +0100
To : XSI(at)Softimage.COM
From : André Adam <a_adam(at)49games.de>
Subject : Re: Reading out operator defaults
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


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.