|
While building a UI for common commands I’ve become stumped at replicating the “repeatable” effect we see in shelf buttons.
Does anyone have any advice for making a [button] repeatable ? (G key of course)
button
-parent $buttonForm
-height 20
-label "New Lambert"
-command "createAndAssignShader lambert \"\"";
When that was a shelf button, hitting “G” after its first application would apply a NEW lambert to each object selected.
Now that I have it as a text button in a UI as above, each successive “G” adds the SAME lambert
I realise I could use a shelfbutton in the ui dock, but that defeats the purpose somewhat.
Any advice MUCH appreciated, and of course thanks in advance
|
|
|