Fredrik Averpil
2014-10-30 11:46:09 UTC
Hi,
Iâm having problems performing this via Python. If using the UI, you would
right click the reference and choose to list the reference edits. Then you
can select each edit and hit âRemove reference editâ.
Iâve successfully been able to list reference edits in various ways with:
cmds.referenceQuery( "soffaRN", editStrings=True )
Result: [u'parent -s -r "|kuddar:pillows1" "|model2670"',
u'parent -s -r "|kuddarRNfosterParent1|pillow_04"
"|model2670|kuddar:pillows1"',
u'setAttr |soffa:model2670.translate -type "double3" -506.529608
65.636552 493.906544',
u'setAttr |soffa:model2670.rotate -type "double3" 212.335372 0 -91.855932'] #
cmds.referenceQuery( "soffaRN", editNodes=True )
Result: [u'|kuddar:pillows1',
u'|model2670',
u'|kuddarRNfosterParent1|pillow_04',
u'|model2670|kuddar:pillows1',
u'|soffa:model2670',
u'|soffa:model2670'] #
cmds.referenceQuery( "soffaRN", editAttrs=True )
Result: [u'translate', u'rotate'] #
But I canât seem to find a way to take any of those responses and actually
remove each edit.
Any ideas?
Regards,
Fredrik
â
Iâm having problems performing this via Python. If using the UI, you would
right click the reference and choose to list the reference edits. Then you
can select each edit and hit âRemove reference editâ.
Iâve successfully been able to list reference edits in various ways with:
cmds.referenceQuery( "soffaRN", editStrings=True )
Result: [u'parent -s -r "|kuddar:pillows1" "|model2670"',
u'parent -s -r "|kuddarRNfosterParent1|pillow_04"
"|model2670|kuddar:pillows1"',
u'setAttr |soffa:model2670.translate -type "double3" -506.529608
65.636552 493.906544',
u'setAttr |soffa:model2670.rotate -type "double3" 212.335372 0 -91.855932'] #
cmds.referenceQuery( "soffaRN", editNodes=True )
Result: [u'|kuddar:pillows1',
u'|model2670',
u'|kuddarRNfosterParent1|pillow_04',
u'|model2670|kuddar:pillows1',
u'|soffa:model2670',
u'|soffa:model2670'] #
cmds.referenceQuery( "soffaRN", editAttrs=True )
Result: [u'translate', u'rotate'] #
But I canât seem to find a way to take any of those responses and actually
remove each edit.
Any ideas?
Regards,
Fredrik
â
--
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+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAD%3DwhWPbYHapPht8F6Me8wtp8AgMC0m5%3DmdU7tcBGBWD%2BA4x0w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
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+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAD%3DwhWPbYHapPht8F6Me8wtp8AgMC0m5%3DmdU7tcBGBWD%2BA4x0w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.