I think this makes no
sense…
“The command name (first argument) is used to
name the command callback functions such as Execute and Init.”
If you’re a coder, you’re
likely to end-up with something like this: UBI_FC_setSeed_fromDistance().
Right now if I want
user-friendly names on my buttons, I have to use a function name that looks
like this: fromDistance() and this will seriously mess with my code readability/organization.
I’m sure there’s
a way to make my button display “From Distance”.
From:
owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf Of Vincent Fortin
Sent: Wednesday, August 01, 2007
11:19 AM
To: XSI(at)Softimage.COM
Subject: RE: Registered command
name?
>…have a look at
the code and check you have the second argument, (which is the script name
and which is also what will appear in the menu)
Sorry Rob but I’m
not getting the behavior you describe. I’m getting the FIRST argument in
the menu (this makes no sense).
WTH, anyone?
P/s: It is a
self-installed plug-in.
From:
owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf Of Robert Moodie
Sent: Wednesday, August 01, 2007
9:59 AM
To: XSI(at)Softimage.COM
Subject: RE: Registered command
name?
Doing good thanks!
>e.g.
>in_reg.RegisterCommand
"VincentWroteThis", "This is a plug-in created by Vincent "
That's exactly my problem... If I go in Customize Toolbar this custom command
is listed as "VincentWroteThis", not "This is a plug-in created
by Vincent".
Same problem when I drag&drop it in the toolbar.
[Rob] So, assuming the plug-in
is a self-installing, have a look at the code and check you have the
second argument, (which is the script name and which is also what will appear
in the menu)