You can set default values in command definition(plugin registration). But
you cannot specify argument name and value when you are calling the command.


On Wed, Jul 3, 2013 at 7:43 AM, Mihail Djurev
<[email protected]>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
>



--

Reply via email to