Notifications
Clear all

[Closed] Unfold Not working

Hi,

I was tryng to make a script that select all faces in the unwrap and make an unfold on it.
Soo I am creating a new unwrap modifier on my obj, then I switch the map channel to 2, I run a basic unfold command that is normaly working when it’s executed alone. But it’s not working after those steps. I was also try to make a face selction and switching to polygone mode but it was still not working.

modPanel.addModToSelection (Unwrap_UVW ()) ui:on
 $.modifiers[#unwrap_uvw].unwrap.setMapChannel 2
 $.unwrap_uvw.unfoldMap 1

Thank for your help.

1 Reply

Looks like you forgot to select any faces. Set the SO mode to 3 and then select all faces and it will work.

modPanel.addModToSelection (Unwrap_UVW ()) ui:on
$.modifiers[#unwrap_uvw].unwrap.setMapChannel 2
subobjectLevel = 3
actionMan.executeAction 0 "40021"  -- Selection: Select All
$.unwrap_uvw.unfoldMap 1

-Eric