Unfold Erorr

Unfold Erorr

imarhiagbe
Enthusiast Enthusiast
1,710 Views
5 Replies
Message 1 of 6

Unfold Erorr

imarhiagbe
Enthusiast
Enthusiast

Hello, i having a real weird issue here , i can't unfold any UV, nothing at all every time i try this comes out "// Error: line 0: Flags must come before objects: -ch" doesn't matter the file or the model, i even uninstalled and reinstalled Maya again but the problem is still there please help i cant work if i cant UV

Accepted solutions (1)
1,711 Views
5 Replies
Replies (5)
Message 2 of 6

cavescholar
Advocate
Advocate

Hello,

 

Make sure the unfold plugin is loaded.

If it isn't, then enable it.

If it is, then disable it, and re-enable it.

Unfold Plugin loaded?Unfold Plugin loaded?

 

Next,  how are you initiating the unfold command, through a script you created or through UV editor/Toolkit ? 

 

Windows > Modeling Editors > UV Editor , brings up UV editor and UV Toolkit Unfold is a button there.

or 

Inside of UV Editor window, Tools > Unfold  (under the brushes section)

Make sure to access the Unfold options (square little box) and reset the tool.

Even though you reinstalled the old preferences could've been used. 

--

You might check this link out 

Prepare a UV mesh for unfolding

Any more details like;

Has it worked for you before? 

Does it work on polygon primatives like the polycube ?

 

Well, good luck!

Message 3 of 6

Kahylan
Advisor
Advisor
Accepted solution

Hi!

 

This problem occurs if you have "keep history" checked on in the legacy unfold. If you uncheck this option, you should be able to unfold without problems.

unfold_settings.png

I'm not sure why this is happening or why you still can turn on "keep history" since I had that problem already in maya 2018... But if "keep history" is checked, maya uses the "polyOptUvs" command instead of the "unfold" command, "unfold" does the same but does not let you choose if you keep the history. And it uses the "polyPerformAction" command to access "polyOptUvs", that normally happens when a button should call a different command but is forced to use an older command due to some user setting. So "keep history" seems to force Maya to use an outdated command...

 

The good thing about this is that as far as I know the "unfold" command listens to wether you have the general "Construction History on/off" button toggled or not. So if you want to keep your history, you just need to turn on this setting. (You'll find it next to the Symmetry tab in the status line).

 

History_on_off.png

 

I hope this helps!

Message 4 of 6

imarhiagbe
Enthusiast
Enthusiast

hi i wasn't really initiating it with a script it was a script that i was using to try to fix the issue, anyway the second reply solved my issue, thanks anyway for the help

Message 5 of 6

imarhiagbe
Enthusiast
Enthusiast
something so small causing me so many issue, thanks for the help
Message 6 of 6

cavescholar
Advocate
Advocate
Great solution and explanation!
A+
0 Likes