Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Maya® / Autodesk Maya 2008 / Move Tool - Mirror option bug
  RSS 2.0 ATOM  

Move Tool - Mirror option bug
Rate this thread
 
15555
 
Permlink of this thread  
avatar
  • Location: Northampton
  • Total Posts: 48
  • Joined: 04 October 2006 04:18 AM

Hi guys,

I have a little problem here:

when I activate the reflection mode into the Move Tool, using the marking menu “ W + LMB + Reflection “ an error message appears

// Error: Cannot find procedure “setSymmetryModellingOption”. //

If I do the same thing through the Move Tool Option Box it works as usual.

Am I missing something? Is this a bug I can correct by myself?

Is there anybody who’s solved this?

Thank you very much in advance

Mauro



Replies: 0
avatar

I use Maya 2008, and I’ve tried both methods (that you’ve specified) for enabling the move tool reflection option and it works ok, no error messages.
One way to resolve your problem is to enable the reflection from the “Tool Settings” or from where it works (only once, the first time) and then use the preferred shortcut.
Another way is to source the script where this “setSymmetryModellingOption” procedure is defined:
example: source “C:/Program Files/Autodesk/Maya2008/scripts/others/setSymmetryModellingOption.mel”



I have an eye for details… the other one is for seeing in perspective.

Replies: 0
avatar

These are original Marking Menu scripts for move tool.
Open X:\Program files\Autodesk\Maya\Scripts\other (I mean the place where your Maya was installed)
Find this files:

buildTranslateMM
buildTranslateMM.res

Move them to somewhere

Place to X:\Program files\Autodesk\Maya\Scripts\other files from my archive

And test your W + LMB + Reflection

If something wrong, move back your old files.
Hope it’ll help



Bad boys - Bad games!
Intel 2x2.67;2gb ram;Nv 8800 GTS 320mb;WinXp sp2

Attachment Attachment
Replies: 0
avatar

m_raduu

One way to resolve your problem is to enable the reflection from the “Tool Settings” or from where it works (only once, the first time) and then use the preferred shortcut.
Another way is to source the script where this “setSymmetryModellingOption” procedure is defined:
example: source “C:/Program Files/Autodesk/Maya2008/scripts/others/setSymmetryModellingOption.mel”

I’ve tried the first method but with no luck.
The other way requires that “ModellingOption.mel” exists, but it doesn’t.

Thank you very much anyway

ArtPetrovich 12 August 2008 06:59 PM

These are original Marking Menu scripts for move tool.
Open X:\Program files\Autodesk\Maya\Scripts\other (I mean the place where your Maya was installed)
Find this files:

buildTranslateMM
buildTranslateMM.res

Move them to somewhere

Place to X:\Program files\Autodesk\Maya\Scripts\other files from my archive

And test your W + LMB + Reflection

If something wrong, move back your old files.
Hope it’ll help

Thaks to you too but the files you gave me have sorted no effect. The mirror mode in the Move Tool can be activated only into its option box.

I really don’t understand why this feature has this tedious bug. When Maya was an Alias thing the mirror (and not only) mode worked fine with the marking menu, now it doesn’t work.
Why has it been touched??

Is there any solution for this bur using the option box. This workaround has slowed my workflow.

Thank you in advance again.

Mauro

P.S. I forgot to mention that I’m working with Maya 2008 Unlimited Ext2.



Replies: 0
avatar

I’ve told you that I also use Maya 2008 and this is not a problem for me, it works just fine.
You say that the file “ModellingOption.mel” doesn’t exist, I don’t know if it was a typing error that you did or you did not search for the right file. The file is named “setSymmetryModellingOption.mel” and it should be found in your Maya installation directory in “scripts/others/” subdirectory, make sure you’ve searched for the right file.
If the reflection option works from one place it should work from any other place, if you did not mess with any of the menus or the files, you could try and see what command gets executed when you press the option box (the one that works) and what gets executed when you press the shortcut (the one that doesn’t work). To see what gets executed you should open “Script Editor” and from the “Edit” menu select “Clear History” and then from the “History” menu enable “Echo All Commands” then when you do any action in Maya (from interface or from code) you should see what MEL command or script gets executed.
In a normal situation when you enable “Reflection” from “Tool Settings” you see that “setSymmetryModellingOption(true)” is executed among other things, and when you enable reflection from the “W+...” shortcut then the “setSymmetryModellingOption(1)” gets executed (again among other things) this two commands do the same thing: enable the reflection.
So another solution for your problem is to associate the following code to a shortcut.

global int $reflectionState
setSymmetryModellingOption(!$reflectionState);

If this code also generates the error, then you really have a problem :cheese:

Hope this helps.



I have an eye for details… the other one is for seeing in perspective.

Replies: 0
avatar

m_raduu 13 August 2008 02:46 PM

I’ve told you that I also use Maya 2008 and this is not a problem for me,.....
..... this two commands do the same thing: enable the reflection.
So another solution for your problem is to associate the following code to a shortcut.

global int $reflectionState
setSymmetryModellingOption(!$reflectionState);


If this code also generates the error, then you really have a problem :cheese:

Hope this helps.

I’m sorry but I couldn’t find the setSymmetryOption.mel file inside the “Others” folder into the “Script” folder.
Anyway I solved the problem in this way:

Saved this little piece

global proc setSymmetryModellingOption(int $val)
{
symmetricModelling 
--symmetry $val;
}

into a file text and then I’ve renamed it setSymmetryOption.mel and put into the “Others” folder.
Now everything works as usual.

Thank you very much again

Mauro



Replies: 0