MoI discussion forum
MoI discussion forum

Full Version: Modification of ImportPointFile script

Show messages: All  1  2-3

From: Michael Gibson
7 Apr   [#2] In reply to [#1]
Hi Brian,

re:
> In order to modify the PointImportFile script, to add the name of the text file to the object create
> (a curve), would the final line of code below do the job?
> Or is there a better example?

It looks fine to me, does it work ok?


> I would also like the whereabouts of an example of "bulk selection" of filenames to import, if possible?

If you want to process all the files in a certain directory, there is an example here of using
moi.filesystem.getFiles() to get a list of files contained within a folder,
http://moi3d.com/forum/index.php?webtag=MOI&msg=6689.2

Like this:
var files = moi.filesystem.getFiles( 'c:\\iges_files', '*.igs' );

- Michael
From: bemfarmer
7 Apr   [#3] In reply to [#2]
Thank you very much Michael,

The ability to import all of the .xyz files in a directory should be very helpful.

I will do some testing...for both coding.

- Brian

Show messages: All  1  2-3