PDA

View Full Version : Importing/exporting keys...


johnyz
03-06-2009, 07:06 AM
Hi guys... I don't know if this post should be in this thread, but I have a technical problem that I cannot solve...

it's an animation issue.
I have my own rigged character, and I wrote a script to select all the controls for this guy.
In my scene file I referenced this character - so what I have there is the scene file with animation and a referenced scene file with the character. (I'm using namespace rig_to_reference)

I need to copy keys from one version of animation file to another.
I tried everything:

I tried opening one file selecting all controls and the keys in timeline, dopesheet, grapheditor - and doing various copy commands.

Then I opened another file where I wanted to paste the keys - but only some of them are pasted... I don't know why. I also selected all the controls but it would only paste the keys
for few controls (feet, face...)
namespace is the same and everything looks cool but I cannot paste.
In the past this method would work so I don't know what is the deal.

I also tried to use animexport plugin... It saves the keys sucessfully, but then when I open other scene and try to import keys it says: error reading file...

Does anybody know how to solve this problem?
Is there any way?

Even sometimes when I try to copy my keys in the timeline they get messed up...
Rarely - but then at least it works in graph editor. And here - when I try to transfer them between to files I just can't.

HELP PLEASE :)

Cheers

shinyprem
03-08-2009, 10:19 AM
Hi...
You will find a MEL script named dkAnim in highend3d . It saves the animation and loads.
I feel that the pblm you are facing is of the prefix tht the controls get when they are exported or refrenced. Try opening the saved animation file in a wordpad and edit the prefix.

Rgds,

johnyz
03-16-2009, 01:06 AM
Well... Thanks for your help. I solved this issue somehow with my previous model, but now I'm struggling with my new one.
It's again refererenced from file.
I cannot copy and paste keys in timeslider and graph editor.
because it does really weird things to my curves and my model.

Is this option working in maya 2008? Cos I start wondering...
I'm selecting all the controls, then I select keys, copy and paste...
With different options - segments/range/keys insert and merge and none of them seems to work.

Any idea? How to copy and paste keys?

johnyz
03-16-2009, 06:17 PM
Well at least this dkAnim script that you mentioned works very good. Although I wish there was a version in which you could specify time-range to cut and paste keys...
Is there anything like that?
This also kind of solves my problem with new model - cos what I can do is I can export keys, move the ones that I have somewhere and import saved ones and pick a part that I want.
But if anybody knows more simple way to do it - please share this wisdom :D

Anyway - thank you guys :)

isoparmB
03-17-2009, 05:17 AM
Character sets and animation clips are worth looking into in this regard. As long as your master file has them and you animated from this master file, it should be relatively easy to export your animation clips from one animation file and paste them into another file.

refract
03-19-2009, 02:31 AM
I"ve used 'animexport' on this before and from what i remember it seems to work fine. I select just the joints on the mocap rig, or whatever (dismiss expressions and multiply divide nodes for twists,.. its like exporting for motionbuilder... the can't use it), and export.
Then import to the new rig, ... joints names the same. Also, shift select from top to bottom in the outliner,.. don't just select all in the hyper graph or hypershade mat editer. (maya disorganizes it lovingly)

AnimExport needs the perfect selection of joints from top to bottom and they need to be named exactly the same as the file you are importing it to.

(and namespaces never mattered)

CGTalk Moderation
03-19-2009, 02:31 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.