Optimize scene (everything checked) via Python?

2,237 views
Skip to first unread message

Fredrik Averpil

unread,
Mar 11, 2013, 10:08:58 AM3/11/13
to maya...@googlegroups.com
Anyone know how to trigger the optimize scene via python?

I wish to have all check boxes ticked...

// Fredrik

sid

unread,
Mar 11, 2013, 10:22:31 AM3/11/13
to maya...@googlegroups.com
probably just by:

import maya.mel as mel
mel.eval("MEL COMMAND HERE")


Sorry, not sure what the mel command for optimise scene size is!

Sid


--
You received this message because you are subscribed to the Google Groups "maya_he3d" group.
To unsubscribe from this group and stop receiving emails from it, send an email to maya_he3d+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Fredrik Averpil

unread,
Mar 13, 2013, 5:54:05 AM3/13/13
to maya...@googlegroups.com
Thanks. It turns out that the command I was looking for was:
mel.eval("cleanUpScene 3")

The "3" means it will enable all cleanups.

// Fredrik

Reply all
Reply to author
Forward
0 new messages