Notifications
Clear all
[Closed] Display Edit UVWs window Hotkey/Button request
Dec 20, 2005 6:23 pm
Here is the work flow that I need.
If there isn't a Unwrap UVW Modifier, add one to the selected object and open the Edit UVWs window.
modPanel.addModToSelection (Unwrap_UVW ()) ui:on
$.modifiers[#unwrap_uvw].unwrap.edit ()
else if a Unwrap UVW already exists then, just open the
$.modifiers[#unwrap_uvw].unwrap.edit ()
Can you help me fill in the syntax for the if and the else part. Mine was hanging up on those that didn’t have a Unwrap UVW, and if it did, it added another one.
Thanks
2 Replies
Dec 20, 2005 6:23 pm
If I have understood correctly…
if $.modifiers[#Unwrap_UVW] == undefined then (
modPanel.addModToSelection (Unwrap_UVW ()) ui:on
$.modifiers[#unwrap_uvw].unwrap.edit ()
)
else (
$.modifiers[#unwrap_uvw].unwrap.edit ()
)
Hope that helps.
Dec 20, 2005 6:23 pm
Hi there, I’ve written one that does just that =),
you can get it here
http://www.rodneyolmos.com/download_rotools_for_max8.php
hope it helps, there is a video that shows it usage
cheers