Modification of ImportPointFile script
All  1  2-3

Previous
Next
 From:  Michael Gibson
11383.2 In reply to 11383.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
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  bemfarmer
11383.3 In reply to 11383.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
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages: All  1  2-3