maya scene assemblies

808 views
Skip to first unread message

Robert Kolbeins

unread,
Dec 12, 2014, 11:31:08 AM12/12/14
to python_in...@googlegroups.com

I'd like to sneak in one question here using referenceAssembly node. The referenceAssembly node has a definition input path. I've got a assembly definition as a rigged character. The animator creates the referenceAssembly. I need to update the rig and the obvious would be to replace the referenceAssembly input definition file path. But if I do that, I loose the keyframes connection.

Any simple solution to this problem?

should this python module be able to do the job "import maya.app.sceneAssembly.assemblyReferenceInitialRep as iRep"

Marcus Ottosson

unread,
Dec 19, 2014, 2:47:11 AM12/19/14
to python_in...@googlegroups.com

Seeing as you haven’t yet gotten an answer to this, I’ll just say that I’ve never seen nor used maya.app before. Are you sure it’s an end-user library, like maya.cmds? Having a quick look at that api, there seems to be a cmds.assembly command, have you tried it?


--
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_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/02b5802b-6b6d-4383-ac4f-577876fb25a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Marcus Ottosson
konstr...@gmail.com

Robert Kolbeins

unread,
Dec 29, 2014, 10:30:45 AM12/29/14
to python_in...@googlegroups.com
I'm using the assembly command to import character rig

When I publish a character rig I'm writing the files and generating the definition by script and that all works fine.  So I have something like:

assembly_definition.v005.mb(this file is built and paths the different rig files)
hiRes.v005.mb
loRes.v005.mb
proxy.v005.mb

Now I build the scene using.

reference=cmds.assembly(name=name, type='assemblyReference')
cmds.setAttr(reference + ".definition", path_to/assembly_definition.v005.mb, type="string")

So the character is there and has been animated. Now I've got the rig updated and I've written out v006 of all files above.  The assembly reference node has a path to the definition file, if I update the file path I loose all the keyframe connections.  And v005 and v006 are actually identical so there no change in the rig setups.   To have the option there to replace path then it seems like half finished node if it doesn't try to maintain the keyframe connections!.  I must be missing something obvious, no?

-R



 








--
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/m9gxgYu8AJM/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/CAFRtmOBbpmCT6dveq6Bzk9m-VX_1FpPDMt2__f3tLCc7FXUAHA%40mail.gmail.com.

Marcus Ottosson

unread,
Dec 29, 2014, 12:02:27 PM12/29/14
to python_in...@googlegroups.com
Sorry, you've reached the end of my experience with assemblies. :(​

Robert Kolbeins

unread,
Dec 29, 2014, 1:00:46 PM12/29/14
to python_in...@googlegroups.com
Problem solved.  I need to put the active representation to the top one in the selection list[index 0] before switching the definition file version.

-R

On Mon, Dec 29, 2014 at 5:02 PM, Marcus Ottosson <konstr...@gmail.com> wrote:
Sorry, you've reached the end of my experience with assemblies. :(​

--
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/m9gxgYu8AJM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to python_inside_m...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages