Hello Michael, thank you for another lighting fast reply.
Thank you for the shortcut, this makes total sense. Is there an official place somewhere listing all these script classes, and maybe even an inventory of useful commands like this one ? Sure enough it would help power users quite a bit (as opposed to having to ask here on the forum). This page could even be accessible directly from the Shortcut Keys option panel for instance.
On my end I am currently putting the finishing touches to a floating panel grouping all my needed commands using <moi:LabelButton command="commandname"></moi> tags, in a simple index.htm called through moi.ui.createDialog. Also with a search box, meaning that all tools are just two keystrokes away (for instance typing "tr" filters for Trim) :
So naturally I'd be curious to know if there a way to call a complex command like this "sketch repeat" script from the html code. This is what I meant by appending it to a button, if that makes sense :) This would basically allow me to store custom commands without necessarily having to assign them to KB shortcuts.
[edit] Ha, nevermind ! Found it : <moi:LabelButton onclick="scriptgoeshere"></moi:LabelButton>
Lastly a follow-up question on CPlane : is there a clever way to select a surface, then click a button/run a command and have the CPlane be instantly placed on there and aligned to said surface ? As opposed to having to launch CPlane and then picking the center point and setting the orientation manually each time.
"Snap to locked objects" turned off is excellent, that does it indeed :)
Thanks !
|