cmds.nodePreset ...Is there ay way to save/load nDynamic node?

40 views
Skip to first unread message

raf...@gmail.com

unread,
Apr 13, 2015, 4:16:17 AM4/13/15
to python_in...@googlegroups.com
Hi, is there any way to save node dynamic constraint preset using maya.cmds? I was only able to save the shape node attributes..thx

cmds.nodePreset( save=("dynamicConstraint1","_test1") )
cmds.nodePreset( save=("dynamicConstraintShape1","_test2") )

johnvdz

unread,
Apr 13, 2015, 7:53:59 AM4/13/15
to python_in...@googlegroups.com
are you trying to save out whole cloth scenes? if so really you could
look at writing your own XML exporter using miniDom. then you can write
out anything

https://docs.python.org/2/library/xml.dom.minidom.html

most of the presets use xml anyway.

a quick gooley search with "Maya miniDom" should give you plenty to
start with.

john
Reply all
Reply to author
Forward
0 new messages