Hi, there im quite new to zscripting, and im trying to wrtie a script which would go and import all obj’s in specified folder. I believe showing an example is a good idea:
Say I have folder C:\Models\ where is x obj files. I would like to write a script which would go and import all obj from this specific folder.
Importing one or any fixed size and name is easy as ican simply write
[ISubPalette,“ZPlugin:Import Tools”]
[IButton,“ZPlugin:Import Tools:Import”, “Some texr”,
[FileNameSetNext,“C:\Models\1.obj”]
[IPress,Tool:Import]
]
There is no while loop in zscripts so i am wondering how i can go about iterating here… any help would be appreciated:)
I believe it can be done as subtool master multi append has similar functionality. Btw. is there any way to see subtool master surce code somewhere?
Thanks in advance:)!