Mimic 'select' in custom tool
-
Hi,
I am writing a script where I want the user to be able to select some entities, have code do something with those entities, then ask the user to select some more entities, have the user do something with those entities, and so-on.
The best way to do this is by using a tool - have the user use the tool to select items, press a command to execute the ruby script, the tool will re-set itself and the user can select more items. However, I'm not sure how to have the user select within a custom tool.
Thanks,
--
Karen -
Duh, brain fart - use onMButtonDown to detect user's selection of objects...
-
An easier way is to make menu macros for the context menus (the right-click popup and the Edit menu's selection submenu.)
FYI: I posted a boilerplate sample
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement