Custom Tool - Allow user to manipulate selection?
-
I'm making a tool that modifies the entities of the current selection. However, when the custom tool is activated you can't modify the selection.
Is there a built-in feature to allow this? Or do I have to write my own selection methods - reinventing the wheel? -
You have to write your own selection method. The good thing about it though is that you can pick how big the select window on the cursor is, so if your making this to paint lines with or something, you could make it more useable than SU's built paintbucket that does not like to paint lines.
But it is a pain if you are just trying to re-create the existing selection tool. I have not done all of that before, I've just done single click and add the item to the selection set type selections. They are fairly easy.
Chris
-
No, this isn't the paint tool. This is for a little script I'm writing to save me some time on something I have to do at work. I need to modify the selection while my tool is active. Looks like I have to rewrite a whole selection tool... But at least that can be used for other plugins. Other plugins can extend the selection tool.
-
I'm pretty sure you need to re-write it. The only thing I can think of is there was a discussion a while ago about making other tools work like the orbit and pan tool, so they can be invoked while your tool is active, and not de0activate your tool. So you could try to do that with the selection tool, make it pass control to the selection tool without de-activating your script.
I really don't remember who asked the question, but it seemed like RickW, AdamB, and maybe NewOne were involved in the conversation? Hmm, I don't recall. But I am thinking maybe it would be possible.
I don't remember if "the magic" happens in the Tool.resume / Tool.suspend? or if it happens with the new .start_operation flags? Or what it was, but there was a conversation about it....sorry I can't give any better specifics. Maybe someone else knows what I'm remembering.
Chris
Advertisement