I made a script that allows you to batch import any kind of file from a specified folder (merely choose what extension to import, or * for all).
I've also put options similar to what you'd see in the standard Import dialog.
However, I'm a bit confused as to how to replicate the "Group by Object" / "Group by Material" option in the standard dialog. There seem to be two import options that could be related to this:
group_by_shader -- True/False
and/or
group_by -- integer? -- currently set to "2", not sure what this means
What should these options be set to for Group by Object or Group by Material? Or is there another option I should be looking at?
Right now the script uses "group_by_shader" (represented as "Group by Material" for clarity). Is this correct usage?
Thanks,
Seth