PDA

View Full Version : resetTool questions


HellstormDe
11-18-2007, 04:39 PM
I have a question about the resetTool command:

I had the problem that I could not open the bevelPlus Options dialog. Maya said there is an error: Illegal Value: 3 (or something like that).
So I also wasn't able to reset the settings of that tool. However, there is the resetTool MEL command.
If I'm right it should reset Bevel Plus by invoking the command:
resetTool bevelPlus;

However, when I enter this command Maya tells me: "// Error: Object not found: //"

Did I something wrong or do I have to use a other command for resetting a single options dialog?

goleafsgo
11-19-2007, 01:53 PM
This will reset the bevel plus options.
bevelPlusSetOptionVars 1;

The resetTool command is used to reset the options on tools...like the Move Tool or Rotate Tool or Poly Split Tool...what you are looking at is the option box for a command. The UI for command options are in mel files and their options are almost always stored in optionVars. It would usually take a little poking around to find it but there is usually a mel proc which makes sure that the optionVar's exist and are initialized correctly.

CGTalk Moderation
11-19-2007, 01:53 PM
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.