Hi Tom,
re:
> As it works very simply with a command like "Insert thickness=2" I tried it also with the Extrude
> command by assigning "Extrude distance=2" to a shortcut key, but in this case it did not work
> could you explain, please ?
The name that you need to use for the initialization is the control's id="" value in the .htm file which is not always exactly the same as the text label that is displayed in the UI.
So for Extrude if you open up Extrude.htm the input field for the distance looks like this:
<moi:DistanceInput id="distanceinput" ...
So that means you have to use "Extrude distanceinput=2" for it to work, not "Extrude distance=2".
I think in the future I'll introduce some additional alias values for this type of initialization, that way it could support other labels without breaking any scripts. The id value is also used in scripts that access the UI so it would introduce bugs if it was changed.
- Michael
|