0
$\begingroup$

I try too call a Import-Function from Command-Line or Python Script. (Addon: https://github.com/neverhood311/Stop-motion-OBJ) However, with

bpy.ops.ms.import_sequence

i see that this Addon has the following structure:

bpy.ops.ms.import_sequence(filepath="", importSettings={"name":"", "obj_use_edges":True, "obj_use_smooth_groups":True, "obj_use_groups_as_vgroups":False, "obj_use_image_search":True, "obj_global_clight_size":0, "stl_global_scale":1, "stl_use_scene_unit":False, "stl_use_facet_normal":False, "axis_forward":"-Z", "axis_up":"Y"}, sequenceSettings={"name":"", "fileNamePrefix":"", "perFrameMaterial":False, "cacheMode":'cached', "fileFormat":'obj', "dirPathIsRelative":True}, filter_glob="*.stl;*.obj;*.mtl;*.ply", directory="", axis_forward='-Z', axis_up='Y')

So i wrote a Call according to this, with the aim to make the import via cmd and safe it then as frame.blend. My Code for this is :

bpy.ops.ms.import_sequence(filepath="C:/Users/Tom/Desktop/obj", importSettings={"name":"frame"}, sequenceSettings={"name":"frame", "fileNamePrefix":"frame"}, directory="")

But this produces the following error :

Traceback (most recent call last):

File "<blender_console>", line 1, in <module> File "C:\Program Files\Blender Foundation\Blender 2.91\2.91\scripts\modules\bpy\ops.py", line 132, in __call__ ret = _op_call(self.idname_py(), None, kw) TypeError: Converting py args to operator properties: MS_OT_import_sequence.importSettings expected a MeshImporter type, not dict

I am not sure why this is happening since i think that i am passing my data correctly. Can anyone help me with this? Thanks already!

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.