Import/Export Collada DAE from Python

Scripting in Blender with Python, and working on the API

Moderators: jesterKing, stiv

Post Reply
pumbaa
Posts: 2
Joined: Sun Aug 12, 2012 12:08 am

Import/Export Collada DAE from Python

Post by pumbaa » Sun Aug 12, 2012 12:23 am

Hey everyone. :)

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!

pumbaa
Posts: 2
Joined: Sun Aug 12, 2012 12:08 am

Post by pumbaa » Sun Aug 12, 2012 12:42 am

Sweet, got it:

Code: Select all

bpy.ops.wm.collada_import(filepath=PATH)

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests