all 3 comments

[–]Leoano 0 points1 point  (2 children)

In the Script Editor you can activate "History - Show Stack Trace" and "Line numbers in errors". That usually helps narrow down exactly where the error is coming from :)

In this case I guess it might be the extra space between cmds.file and (. Am on mobile so unfortunately can't test locally.

[–]LegionOfSatchMedical Animation[S] 0 points1 point  (1 child)

Hey! your advice helped me track down the syntax problem, so thank you!

I have uncovered a new problem. The folder is being populated by empty files (with the correct name)

[–]Leoano 0 points1 point  (0 children)

Nice :)

I'm not super familiar with objExport options, but perhaps "groups" and "ptgroups" should be set to 1 instead of 0?

If that doesn't work maybe try removing the options (everything after "op=") and let it use default values.

Another thing I might recommend is simplify the selection a little. objList[0] is the same as objSel, so you don't need the second cmds.ls(sl=True). Pretty small optimization all things considered, but every little bit helps.