There are two ways. Either use Hypershade to use MultiplyDivide nodes to do the conversion (which is really fast, values are restricted to three decimals though so you loose precision). The other way is using an expression. Expressions can slow down your scene if you're not careful. A simple deg/rad-conversion shouldn't be…
Thanks a lot for everybodys help on this. The script works perfectly. But now i run into another problem. First I must explain the purpose for requesting this script. This is part of the main Script Im trying to write which is Quad fill (imitating Quad-cap max plugin by obliviboy). So far Ive been sampling many mel scripts…
Hi folks ! I spent quite of time in the past (and even today) to find any informations on how to execute mel commands from an ascii scene file. Unfortunately I didn't found any clue on this "feature". By reading a Maya ascii I can see it's mostly simple commands executed like in any mel script. I was able to launch one of…
Or better yet, if easier to do in python (tho I haven't figured out how to translate sets -e -forceElement initialShadingGroup into python yet..) import maya.cmds as cmds import maya.mel as mel cmds.select("*hg*"); models = cmds.ls(sl=True) for m in models: cmds.polySoftEdge( a=180 ); cmds.delete(all=True, ch=True);…
Hi is there any way to repeat the last command with the exact same value. (without using cop and paste attribute that is pain in the ass). (G is the shortcut to repeat but not with the exact values). Any #MEL command to repeat that?
for a costum tool i need to toogle attributes of objects with checkBoxes. If multiple objects are selected i want my checkBoxes to be greyed out, just like in other applications. anybody got a clue how this works in maya/mel?
You can use it when you put the script in a .mel file in your maya\2024\prefs\scripts directory. And you can launch it with the Mel command: switchCam 1 The error I am getting: // Warning: float $minAngle = `angle $wupv <<1,0,0>>`; // Warning: Line 118.45 : Redeclaration of variable "$minAngle" shadows previous declaration…