Discussion related to the 'LuxBlend' Blender 2.4+ python exporter script.

Moderators: Ratow, SATtva, coordinators

I thought we fixed everything for the matrix change? Is the very latest version of the exporter working for you?
-Jason

J the Ninja

Posts: 2210
Joined: Wed May 19, 2010 9:54 pm
Location: Portland, USA

Oh, I was using the last "weekly" build, but I downloaded now luxblend from mercurial and it works flawlessly again.
Sorry. And now to test the last build of luxrender.
9/11: inside job ( I am usually asked to delete this from my signature in forums)
Bao2

Posts: 158
Joined: Fri May 22, 2009 3:14 am

I am using Blender v2.62, Luxrender v0.8, and the stable https://bitbucket.org/luxrender/luxblen ... 8-2.60.zip
When I try to render the scene my camera is still pointing to an unidentified point in the scene.
Will that be fixed or is there a workaround such as manually adding the information in the lux file?

I read through the various forum threads, but I got lost in all the information.

Best regards
Martin
sandstorm

Posts: 41
Joined: Sat Mar 08, 2008 1:51 am
Location: Zurich / Mannheim

You are using the luxblend-version for Blender 2.60...
Use this instead: http://src.luxrender.net/luxblend25/arc ... 77.tar.bz2

B.Y.O.B.

Posts: 1880
Joined: Wed Nov 10, 2010 4:10 pm
Location: Germany

It gives me an error message:
Code: Select all
ERROR: Export aborted: 'Mesh' object has no attribute 'tessface_uv_textures'

What to I need to do now? I have no UV Textures defined.
sandstorm

Posts: 41
Joined: Sat Mar 08, 2008 1:51 am
Location: Zurich / Mannheim

sandstorm wrote:What to I need to do now? I have no UV Textures defined.

Use a build which doesn't have bmesh integrated, as mentioned in the sticky.
May contain traces of nuts.

Lord Crc

Posts: 4455
Joined: Sat Nov 17, 2007 2:10 pm

Thanks! Instead of re-building an older version, I have changed geometry.py to get it at least to work. For all of you, here is what I did:
Search for the following text in geometry.py
Code: Select all
# hack for bmesh# TODO remove this when obsoletedef get_uv_textures_old(mesh):   return mesh.uv_texturesdef get_uv_textures_new(mesh):   return mesh.tessface_uv_textures

and replace the last row with
Code: Select all
# hack for bmesh# TODO remove this when obsoletedef get_uv_textures_old(mesh):   return mesh.uv_texturesdef get_uv_textures_new(mesh):   return mesh.uv_textures
sandstorm

Posts: 41
Joined: Sat Mar 08, 2008 1:51 am
Location: Zurich / Mannheim

sandstorm wrote:Thanks! Instead of re-building an older version, I have changed geometry.py to get it at least to work. For all of you, here is what I did:
Search for the following text in geometry.py
Code: Select all
# hack for bmesh# TODO remove this when obsoletedef get_uv_textures_old(mesh):   return mesh.uv_texturesdef get_uv_textures_new(mesh):   return mesh.tessface_uv_textures

and replace the last row with
Code: Select all
# hack for bmesh# TODO remove this when obsoletedef get_uv_textures_old(mesh):   return mesh.uv_texturesdef get_uv_textures_new(mesh):   return mesh.uv_textures

Thats not the right fix.
We test for revision but when just adapting the new revision as byte for us, i heard not every blender-build will have a revision compiled in, so this must fail then.
I look now for rather using the bpy.app.version tuple, but in the past this had the disadvantage to not have a new subversion on all relevant api-changes.
So i can do what i want, i guess we will sometimes have a breakage in conditionals.

Stay tuned, guess i commit a change tonight.

AKA: if bpy.app.version[1] > 62 and bpy.app.version[2] > 0 etc.

Jens
Last edited by jensverwiebe on Sun Mar 04, 2012 2:07 pm, edited 1 time in total.

jensverwiebe

Posts: 2124
Joined: Wed Apr 02, 2008 4:34 pm

For me the above shown change worked so far. I could even render with textures. Everything works as expected
sandstorm

Posts: 41
Joined: Sat Mar 08, 2008 1:51 am
Location: Zurich / Mannheim

I pushed the changes: Use now version tuple for conditionals, since not all blenderbuilds are compiled with build_info aka revision

Conditionals are:

- if bpy.app.version[1] >= 62 and bpy.app.version[2] > 0: --> bmesh adaption
- if bpy.app.version[1] < 62 : --> old matrix is used

..where bpy.app.version is tuple (major, minor, sub),
bpy.app.version[0] is major ( not used yet ), bpy.app.version[1] is minor and bpy.app.version[2] is sub-version, all elements integer.

Since i guess no one would use a svn revision before 2.62 anymore, nobody should run into trouble.

Jens

jensverwiebe

Posts: 2124
Joined: Wed Apr 02, 2008 4:34 pm

PreviousNext