simonbroggi / blender_spreadsheet_import

Blender add-on to import Spreadsheet data from CSV or JSON files. The data can then be used with geometry nodes.
GNU General Public License v3.0
91 stars 14 forks source link

How to import with a python script? #7

Open NuriaTaberner opened 1 year ago

NuriaTaberner commented 1 year ago

Thank you very much for the addon! How would it be possible to do the import with python scripting? Somehow bpy.ops.import.spreadsheet() doesn't seem to work. Also I would not know how to later assign the variables with code.

simonbroggi commented 1 year ago

I think that's currently not possible without editing the code.

Probably I should somehow 'expose' or register the read_csv_data / read_json_data functions in the python script.

You could just change the add-on code and call these functions however you like, to do a batch import for example..