PDA

View Full Version : behavior to xsi


duardito
12-08-2004, 05:28 PM
hi, I am trying to export animation from behavior 2 to xsi 4,2 but I dont find the code or option to do it, please help.

cannibalannie
05-05-2005, 12:44 PM
I believe this is what you are looking for:



// Ex1. Start the motion recording

InitializeRecord(24);

var foo = Actor("Foo0");

SubmitActor("c:\mocap.xsi", foo);

StartRecord();

SubmitActor( file, actor )

___________________

Description

This function tags an actor for motion recording and specifies the file in which its motion data is stored.

Parameters



file

a string that specifies the filename for the motion data (full path including the drive)

actor

an actor object that specifies the target actor



Source File

The source for this helper function can be found in the mocap.pc file located in the CommonProject folder.

Example

// Ex1. Submit the Foo0 instance for motion recording

InitializeRecord(24);

var foo = Actor("Foo0");

SubmitActor("c:\mocap.xsi", foo);
_________________________________________________________-

I think it is start capture you need.

You can find this documatation in the helper function reference in the index under start capture.


After publishing and running the simulation. Save the world flile to .xsi format in the viewer. You should now be able to import the .xsi file into xsi. Hope this works for you.sue

CGTalk Moderation
05-05-2005, 12:44 PM
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.