Could you wrap the command in a python function?
def myFunction(arg1="Default", arg2=1, arg3=True, arg4="String"):
xsi.myCommand(arg1,arg2,arg3,arg4)
myFunction(arg2=3, arg4="String2")
Eric Thivierge
===============
Character TD / RnD
Hybride Technologies
On 03/07/2013 7:43 AM, Mihail Djurev wrote:
Hello,
I have a custom command with 10+ parameters and each of these
parameters has a name and a default value. Right now I'm forced to use
something like
MyCommand("cube", 1, 20, , , , , , , true);
This approach, however is very cumbersome and error-prone. I was
wondering if there is a way to call the command by setting the
parameters by name and not by their order.
Basically, I would like to be able to do something like this:
MyCommand( objName = "cube", type = 1, someOtherThing = 20,
yetAnotherThing = true);
Is it possible to do this in Softimage?
Thanks,
Mihail