soupday / cc_blender_tools

Add-on for Blender, for importing and auto-setup of character creator 3 & 4 and iClone 7 & 8 character exports into Blender.
GNU General Public License v3.0
446 stars 80 forks source link

Python API #143

Open mertakbal opened 1 year ago

mertakbal commented 1 year ago

I am trying to batch process over twenty .fbx models with a python script. Unfortunately I can not access bpy.ops.cc3.importer or bpy.ops.cc3.exporter in my script. I don't know which arguments they will take. Can anyone help me further?

soupday commented 1 year ago

Import from CC3: bpy.ops.cc3.importer(param="IMPORT", filepath="path\to\file.fbx")

back to CC3: bpy.ops.cc3.exporter(param="EXPORT_CC3", include_selected=True, include_textures=False, filepath="path\to\file.fbx") to Unity: bpy.ops.cc3.exporter(param="EXPORT_UNITY", include_selected=True, include_textures=True, filepath="path\to\file.fbx", export_face_smoothing=True) if Rigified: bpy.ops.cc3.exporter(param="EXPORT_RIGIFY", include_selected=False, include_textures=True, filepath="path\to\file.fbx", export_face_smoothing=True)

mertakbal commented 1 year ago

Thank you so much!