View Full Version : mouse tool question
stuh505 04-02-2006, 05:45 PM I have made a scripted mouse tool, which works fine. When the user clicks it starts, when they click again it ends.
Now I want it to automatically start the tool whenever a they click and a certain variable is true. For instance, whenever a certain button is toggled, the tool will start each time they click.
How can I do this?
|
|
MrSparkle
04-02-2006, 07:00 PM
You can start a tool by calling startTool <tool_name>
There is also a method called stopTool() but it didn't work when I tried it in one of my last scripts.
For more parameters of the startTool method refer to the MaxScript help.
Chris
stuh505
04-02-2006, 07:13 PM
When you start the tool, the first click activates it. The second click ends the tool. Now I need the tool to be automatically started again so that the third click will activate it again, the 4th click will end it, the 5th click will activate it, etc.
EDIT - Nevermind, I was just being dumb
MrSparkle
04-03-2006, 09:12 AM
I would use a plugin that accepts more than 2 mouse clicks. Then I would stop the tool using #stop when the tool has completed the exit condition is true.
How did you solve the problem?
CGTalk Moderation
04-03-2006, 09:12 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.