OBJ Import Flip ZY-axis

OBJ Import Flip ZY-axis

Anonymous
Not applicable
2,106 Views
2 Replies
Message 1 of 3

OBJ Import Flip ZY-axis

Anonymous
Not applicable

I try to import OBJ file in maxscript:  importFile myFile.obj #noPrompt

How can I disable flipping ZY-axis. In Import dialog there is check-box "Flip ZY-axis". But I want to disable this option programmatically (in script).

Thanks in advance.

0 Likes
Accepted solutions (1)
2,107 Views
2 Replies
Replies (2)
Message 2 of 3

blakestone
Collaborator
Collaborator

I am not sure if this option is exposed in maxscript.

You could do this via script after the object has been imported:

 

max select all -- select all objects
rotate selection 90 [0,1,0] -- rotate selection 90 degrees 'Y-Axis'
resetXForm selection -- reset xform (pivot)
collapseStack selection -- collapse stack / modifier list
0 Likes
Message 3 of 3

denisT.MaxDoctor
Advisor
Advisor
Accepted solution
setinisetting (objimp.getIniName()) #geometry "FlipZyAxis" "0"