Maya 2020 fundamentals - modelling the real world
Get halfway through a model and find it's an unworkable mess? Can't add edge loops where you need them? Can't subdivide a mesh properly? If any of this sounds familiar check this course out.
# 1 16-04-2015 , 05:44 PM
Registered User
Join Date: Dec 2007
Posts: 1

how to execute a external text file

hello everybody.
i'd like open and execute a external text file (wrotten with the fopen command).

$FileName = ( `internalVar -userTmpDir` + "tmp.txt" );
$fileId=`fopen $FileName "w"`;
fwrite $fileId "select -r nurbsTorus1 \;";
fclose $fileId;


however i don't know call back the file "tmp.txt" to execute it.
can you help me ?

# 2 17-04-2015 , 06:02 AM
NextDesign's Avatar
Technical Director
Join Date: Feb 2004
Posts: 2,988


Imagination is more important than knowledge.
Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads