Previous Thread  Next Thread

chat icon Import/Export Collada DAE from Python

pumbaa

Posted: Sat Aug 11, 2012 11:23 pm
Joined: 11 Aug 2012
Posts: 2
Hey everyone. Smile

I have a directory of Collada models, which I want to import and bake lightmaps from in batch.

My first guess was that a Python script may be the right way to go about doing that. Unfortunately, it's unclear to me whether the OpenCollada-based importer in the latest versions of Blender can in fact be accessed from Python.

Can someone please point me to some documentation or provide some example code?

Thanks!
Reply with quote


pumbaa

Posted: Sat Aug 11, 2012 11:42 pm
Joined: 11 Aug 2012
Posts: 2
Sweet, got it:
Code:
bpy.ops.wm.collada_import(filepath=PATH)
Reply with quote


 
Jump to:  
Powered by phpBB © 2001, 2005 phpBB Group