PDA

View Full Version : IgesToMaya in batch


bjoern
05-22-2003, 01:08 PM
there is a new batchtool delivered with Maya 5: IgesDxfToMaya

its executeable from the commandline.

question: Is it possible to batch a complete folder automaticly?

bye
bjoern

alexx
05-22-2003, 01:24 PM
sure it is:
in maya do some mel and read the contets of the folder and pass the filenames to the converter..

cheers
alexx

bjoern
05-22-2003, 01:33 PM
mhh i am a mel newbie :)
ins't it possible to type somthing like:

IgesDxfToMaya *.igs -o *.ma
or
IgesDxfToMaya filename.igs;filename.igs ;...;... -o *.ma

please help me more i have no slkills in scripting.

regards
bjoern

alexx
05-22-2003, 01:55 PM
this is really quick and really dirty.. the resulting files will have .igs.ma as an extension but they should be propper ma files.. i have no time to fix that as well..

at the top where now "c:/" is, enter your path to the iges files. (using forward (!) slashes)

cheers

alexx


string $files[] = `getFileList -folder "c:/" -filespec "*.igs"`;

for ($file in $files)
{

system ("IgesDxfToMaya "+$file+" -o "+$file+".ma");
}

bjoern
05-22-2003, 02:00 PM
yeah :-)
i check it out

thx Allex

the Cgtalk is soo Cool :buttrock:

CGTalk Moderation
01-15-2006, 05:00 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.