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












On Fri, Dec 19, 2014 at 7:47 AM, Marcus Ottosson <[email protected]>
wrote:

> 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
> <http://help.autodesk.com/cloudhelp/2015/ENU/Maya-Tech-Docs/CommandsPython/assembly.html>
> command, have you tried it?
> ​
>
> On 12 December 2014 at 16:31, Robert Kolbeins <[email protected]>
> wrote:
>>
>>
>> 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"
>>
>> --
>> 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 [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/python_inside_maya/02b5802b-6b6d-4383-ac4f-577876fb25a4%40googlegroups.com
>> <https://groups.google.com/d/msgid/python_inside_maya/02b5802b-6b6d-4383-ac4f-577876fb25a4%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> --
> *Marcus Ottosson*
> [email protected]
>
> --
> 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
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOBbpmCT6dveq6Bzk9m-VX_1FpPDMt2__f3tLCc7FXUAHA%40mail.gmail.com
> <https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOBbpmCT6dveq6Bzk9m-VX_1FpPDMt2__f3tLCc7FXUAHA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CANFqvZQMd-p_dZahp1DotYU_Jwe4-tZFAseV2Wq2rzkRxR6NRg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to