DarklightGames / io_scene_psk_psa

A Blender extension for importing and exporting Unreal PSK and PSA files
GNU General Public License v3.0
310 stars 20 forks source link

Commandline? #82

Closed mrfrankito closed 3 months ago

mrfrankito commented 3 months ago

Is there a command line I can use in order to import files from a python script? For example this:

Replace 'import_function' with the actual function from Blender or an addon

bpy.ops.import_scene.import_function(filepath=file_path)

cmbasnett commented 3 months ago

bpy.ops.import_scene.psk is the name of the function. You can see the list of arguments as properties here.

For example:

bpy.ops.import_scene.psk(filepath='your://filepath', should_import_vertex_colors=False, scale=3.0)