Optimize scene by mel/python code

366 views
Skip to first unread message

Shobhit Khinvasara

unread,
Jun 25, 2018, 2:34:29 PM6/25/18
to Python Programming for Autodesk Maya
Hi Everyone,

I have been trying to run optimize scene through a maya batch process with a -c flag. There is a bunch of documentation for through a cleanUpScene.mel script, but it seems still too complicated. Is there an quick scripted way to run optimize scene with specific options(like only delete unused rendering nodes) like a function call with arguments?

I am using Maya 2016.

Thanks
Shobhit




Shobhit Khinvasara

unread,
Jun 25, 2018, 2:35:21 PM6/25/18
to Python Programming for Autodesk Maya
Or even an OpenMaya API call to call it directly

josem...@gmail.com

unread,
Jul 24, 2020, 7:03:58 AM7/24/20
to Python Programming for Autodesk Maya
Hi, did you find the way to do it?

Shobhit Khinvasara

unread,
Jul 24, 2020, 1:02:02 PM7/24/20
to python_in...@googlegroups.com
Nothing native, I ended up writing my own variation of Optimize scene through a library of functions by querying nodes of a certain type which don't have any connections.


Shobhit Khinvasara


--
You received this message because you are subscribed to a topic in the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/python_inside_maya/amNfGfsV4WA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/16a6eaa9-87da-4693-8646-ea3afc743744o%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages