View Full Version : How can I get Maya to write out a text file


moomoor82
08 August 2007, 02:29 AM
Hey Guys,
Lets say If I have a rigid body and I bake it. Is there a way to write out the XYZ values for trans and rotation for the object into a text file?
thanks in advance ...
M

GiantG
08 August 2007, 07:45 AM
// Write some data into a file
//
$exampleFileName = ( `internalVar -userTmpDir` + "example.tmp" );
$fileId=`fopen $exampleFileName "w"`;
fwrite $fileId "Hello there\n";
fclose $fileId;

CGTalk Moderation
08 August 2007, 07:45 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.


1