use this (if your UV needs to be checked if its active)if classof (modPanel.getCurrentObject()) == Unwrap_UVW then( another more generic way (checking if there is any UVunwrap modifier inbetween or ontop or bottom:if (selection[1].modifiers[ #unwrap_uvw ] != undefined) then( and for the UV class instance then:local uv =…
btw. there is alternatively also$.modifiers[#unwrap_uvw].unwrap2.stitchVertsNoParams() which wont open the dialogue box and use instead your last settings edit: my suggestion to your code:macroScript stitchverts category:"raino"( if (selection.count > 0)then( if (selection[1].modifiers[ #unwrap_uvw ] != undefined) then(…
macroScript stitchverts category:"raino" ( if classof (modPanel.getCurrentObject()) == Unwrap_UVW then($.modifiers[#unwrap_uvw].unwrap2.stitchverts true 0.0 ) else print "you need to apply a UVW unwrap modifier" ) complete script. hmm, would be better if its in the unwrap UVW group though.
I used your renderUV script and mixed with one of mine. Now the script count black pixel on the uv map, and drop a percentage of "wast uv space" depending on the wanted size of the map. result just below my code is perhaps not very optimised, but its working well on editpoly object just select an editObj and run the script…
erk, tried to make it context sensitive, but max throws false when i type this: if $.modifiers[1] == Unwrap_UVW then print "true" else print "false" even though the first modifier is a unwrap uvw. i tried #unwrap_uvw as well, no go. and typing $.modifiers[1] to find the type doesn't work either... grrr.
bigger update: I crossed the buttons that have no functions yet - those are planned atm. but not yet added. Be carefull though as open UV-editor overwrites color settings of your UV-editor such as background color and edge color. I have not yet tried it on other computers here but those should be the only settings that…
this thread has become bloody big :D What it is all about? A plugin or script collection if you will that boosts the 3dsmax tasks of UV Unwrapping and Texture related stuff. This includes handy align, relax and transformation tools for UV editing but also nifty single button scripts for baking AO, Lighttracer maps or…
arh, i figured out a workaround too: macroScript stitchverts category:"raino" ( if $.modifiers[1].name == "Unwrap UVW" then ($.modifiers[#unwrap_uvw].unwrap2.stitchverts true 0.0 ) ) neverrmind, your way is probably better and less hacky. plus it'll work when the UVW unwrap is something else than the first object, and if…
if you use the stitch selected from the menu, and set bias to 0.0, it even rescales the stitched object. i use it all the time, and have it set to alt+s. actually, figured something out here: $.modifiers[#unwrap_uvw].unwrap2.stitchverts true 0.0 this script will do exactly what i want. now i just need to make it into an…
hi tumberboy, thx for testing the command that is responsible for the rotation there is: [php]obj.modifiers[#unwrap_uvw].unwrap2.RotateSelected (-_a_off * PI/180) [(ptA.x + dx/2),(ptA.y + dy/2),0][/php] the way it seems (havent tested yet) is that max takes even within single maxscript commands the snap value into…