Proxy Tools
-
I'm sure this one has been discussed before, but I can't find the thread..
I know we mere mortals cannot create instances of the standard SU tools, but can we delegate messages to them?
I'm think it would be neat to have a custom tool be able to have mode where it was just acting as a Proxy and forwarding all onLButtonDown/onMouseMove etc to another tool.
Adam
-
what is the difference in creating a tool and handling the buttons/movement/keyboard ?
-
When you say create instances of the the standard SU tools, it makes me think of the custom toolbar script. You can make a toolbar with any of the original SU commands, in any order, combo, even put the little verticle breaks where you want. I forget the link, its somewhere here. I'm not sure if this is what you're asking though.
-
I mean I want to create a tool that code-wise looks like this:
class MyProxyTool def onMouseMove(flags, x, y, view) <pseudo-code> call the SU movetool with (flags,x,y,view) arguments </pseudo-code> end .. and so on .. endSo its a tool that just passes everything onto the Movetool (for example) to allow it to "do its stuff".
Does that make sense?
Adam
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