Hey Fredrik,
Your right, it doesn't do anything! hahaha

try this:


import maya.cmds as cmds

for ref in cmds.ls(references=True):
cmds.file(unloadReference=ref)
cmds.file (cr=ref) # *cleanReference*

thats how the reference editor does it...
(C:/Program Files/Autodesk/Maya2013/scripts/others/referenceEditorPanel.mel)

Cheers!
Eduardo

On Fri, Oct 31, 2014 at 12:58 PM, Fredrik Averpil <fredrik.aver...@gmail.com
> wrote:

> Yes, however, that just simply does not work at all.
>
> Try this;
>
> for ref in cmds.ls(references=True):
>     cmds.referenceEdit( ref, removeEdits=True)
>
> Here in my scene, nothing happens. No reference edits was removed.
>
>
>
> On Fri, Oct 31, 2014 at 11:56 AM, Eduardo Grana <eduardo.gr...@gmail.com>
> wrote:
>
> have you tryed the referenceEdit command with the flag *removeEdits?*
>>
> ​
>
> --
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to python_inside_maya+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/CAD%3DwhWP3ow98GjVjpcArMwg7SbL6ZAuH0AoJhOzG76%2BQoZ6omg%40mail.gmail.com
> <https://groups.google.com/d/msgid/python_inside_maya/CAD%3DwhWP3ow98GjVjpcArMwg7SbL6ZAuH0AoJhOzG76%2BQoZ6omg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Eduardo Graña
www.eduardograna.com.ar

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CACt6GrnMiidVGDFORwvR%3D%3DbMaByMQw-8zOSJUV-HT1Rc5DELpg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to