Hello,
To speed up my workflow, I wanted to get a small script that exports the selected object in a predefined path, with the filename being the same as the object name.
So far I got this:
import bpy
bpy.ops.wm.collada_export(
filepath='C:/Mypath/SELECTED_OBJECT_NAME.dae',
check_existing=False,
filter_blender=False,
filter_image=False,
filter_movie=False,
filter_python=False,
filter_font=False,
filter_sound=False,
filter_text=False,
filter_btx=False,
filter_collada=True,
filter_folder=True,
selected=True,
sort_by_name=True,
filemode=8)
Althought I cannnot figure how to get the ‘SELECTED_OBJECT_NAME’ to actually be the name of the currently selected object (Implying I only select one object at the time).
I’m a complete noob at this, so bare with me.