Hi Mop! I don't know if this is what you want, but I just did this one (need some fun ) Then for the Hotkeys, Maya stocks that in 2 or 3 files, I think that suck, then I have a "sama_PersonnalHotkey.mel" in my script directory. And I edit the userSetup.mel in same directory for source my file and it launch it every maya…
Hmm, inadvertently that script was working fine for me everytime I ran it, yet when I boot up Maya this morning, not working! Anyway, I've rejigged the code : - <font class="small">Code:</font><hr /><pre> string $visibleObjects[]; clear $visibleObjects; for ($layer in ` ls -typ "displayLayer"`) { if (` getAttr ($layer +…
Hi, Thanks to 'unsmoothed' from cgtalk, who has helped me out with the layer code, I've come up with the following solution to your frame all ( and not objects hidden - via layer visibility ) objects. Copy this to a shelf item or your scripts folder and either use the shelf item to execute or assign it to a hotkey, note,…
Hi Paul, Do you have the Bonus Games Tools installed ? Measuring - For generalised Bounding Box information, you can select Bonus Tools > Modelling > Bounding Box Scale Window See here : - For more indepth - i.e. edge analysis, you can toggle on edge length, and then select one or more edges Bonus Tools > Modelling >…
Hey sama.van, thanks! I edited your post to put "code" tags around the code blocks, I think that's better for tabulation. Regarding the int/float thing, I guess it's possible to convert any int input into a float before using it as a value for a command? In Maxscript you can just say "variable as float" and it will convert…
Hi, Glad it's working for you. I can see the benefit of what you require, to add the functionality of deselecting everything after the frame selected command, just add the following line select -cl; as shown here : - <font class="small">Code:</font><hr /><pre> string $visibleObjects[]; clear $visibleObjects; for ($layer in…
For say right, since I use Maya I bagan to learn Mel script... Because maya suck for lot of reasons... (has good snap tools but...) So, about move objects in absolute world, you have some Mel script commands.. then for move all your selection in absolute position : <font class="small">Code:</font><hr /><pre>float…
Yeah, or you can cast it as a float <font class="small">Code:</font><hr /><pre> int $a = 5; print ("float a= " + (float)$a/2 + " but int a= " + $a/2 ); </pre><hr />
mmm back in the days, there was a tool called connectpolyshape that was doing all that stuff without a line of code...(mirroring, adding cage on top of the high, showing/hiding high, etc) does that still exist ? isn't the maya smoothproxy tool or something doing that too now ?