// Error: Flags must come before objects: -LAPTOP

// Error: Flags must come before objects: -LAPTOP

sagarkamble970
Community Visitor Community Visitor
257 Views
1 Reply
Message 1 of 2

// Error: Flags must come before objects: -LAPTOP

sagarkamble970
Community Visitor
Community Visitor

I have installed maya and its showing 

// Error: Flags must come before objects: -LAPTOP

can anyone help 

0 Likes
258 Views
1 Reply
Reply (1)
Message 2 of 2

tkaap2
Autodesk
Autodesk

This is a MEL error being called from somewhere in your environment (possibly your userSetup.mel?) .  
in MEL, commands must be written in the form:
"command -flag -flag <value> objectName;"
Somewhere there is a script calling a command in the form:
"command objectName -LAPTOP;" 
And MEL is assuming that "-LAPTOP" is intended to be a flag, and in that case it doesn't like the syntax.

As an experiment, try renaming your Maya preferences folder <userHome>/maya/YEAR  to be named something else like <userHome>/maya/YEAR_moveaside .  Then relaunch Maya.  Hopefully the error is coming from somewhere in that set of preferences, and it will go away with fresh preferences. 

0 Likes