PDA

View Full Version : Exporting without references


kevinsallee
05-24-2012, 05:06 PM
I'm trying to export some stuff selected from a scene, but if i do cmds.file([...], exportSelected = True), it also exports the references in the file, even if nothing from the reference is selected...
The only flag that seems to do something is exportSelectedNoReference which is obsolete!!

so, maya fail or my fail?

gtbull80
06-05-2012, 12:15 AM
from pymel.core import *
exportSelected("path/fileName.mb")

Does this work for you?

kevinsallee
06-05-2012, 01:01 AM
I found a workaround, but I will try that tomorrow at work and i'll let you know. The only thing that bothers me is the use of pymel, because I'm trying to make my scripts as library agnostic as possible. Anyway, thanks for the help!

CGTalk Moderation
06-05-2012, 01:01 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.