New code repo for Blendigo

Announcements, requests and support regarding the Blender Indigo export script
User avatar
fused
Developer
Posts: 3583
Joined: Fri Sep 22, 2006 7:19 am
Location: Berlin, Germany
3D Software: Cinema 4D

Re: New code repo for Blendigo

Post by fused » Wed May 15, 2013 1:27 am

Phil wrote:Hi all,

there is a problem when exporting the orthographic camera to indigo.
I configured blender assuming I use millimeters (scale 0.001).

The actual code (camera.py) is:
-----------------------------------------------------------------
if(scene.camera.data.type == 'ORTHO'):
xml_format['camera_type'] = ['orthographic']
xml_format['sensor_width'] = [scene.camera.data.ortho_scale]

This should be:
-----------------------------------------------------------------
if(scene.camera.data.type == 'ORTHO'):
xml_format['camera_type'] = ['orthographic']
xml_format['sensor_width'] = [scene.camera.data.ortho_scale * ws]

Cheers,
Philippe
Hi Phil,

thanks a lot for the fix. I'll review and commit this change.

Post Reply
16 posts

Who is online

Users browsing this forum: No registered users and 1 guest