Lens clipping not exporting

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

Moderators: Ratow, SATtva, coordinators

Re: Lens clipping not exporting

Postby Lord Crc » Wed May 16, 2012 7:16 pm

xsl wrote:Is it possible to not show the Blender panels?


I asked Dougal about this back in the 2.5 dev days, and at least then it was not possible from what I understood. However things may have changed...
May contain traces of nuts.
User avatar
Lord Crc
Developer
 
Posts: 4450
Joined: Sat Nov 17, 2007 2:10 pm

Re: Lens clipping not exporting

Postby Lord Crc » Wed May 16, 2012 8:04 pm

Ok, its certainly possible now, I was just being dense back there.

So, what do we want to do? Hide the lens etc panel? Shall we try to keep in sync with BI somehow etc?
May contain traces of nuts.
User avatar
Lord Crc
Developer
 
Posts: 4450
Joined: Sat Nov 17, 2007 2:10 pm

Re: Lens clipping not exporting

Postby Abel » Thu May 17, 2012 4:02 am

Lord Crc wrote:Ok, its certainly possible now, I was just being dense back there.

So, what do we want to do?

As to the clipping option, currently the main problem is that LuxBlend's Clipping tickbox is located too far away from Blender's Lens panel's clipping options. So I'd say LuxBlend's Clipping tickbox should be moved into the Lens panel - or in other words, we'd need to rebuild the Lens panel, including the Clipping tickbox (and at the same time removing the Panorama option as apparently it doesn't do anything when using LuxRender).

Apart from this one button, I'm sure there are other buttons that are duplicated or not grouped logically, like the RGBA output ones. It might be a good idea to try and create some mockups with the ideal interface before moving buttons and panels around on an individual basis.
User avatar
Abel
Developer
 
Posts: 1412
Joined: Sat Oct 20, 2007 8:13 am
Location: Helsinki, Finland

Re: Lens clipping not exporting

Postby jensverwiebe » Fri May 18, 2012 4:29 pm

I made some changes to also allow change blender panes....
Also tested rewriting our panels to not need blender lens for example but found it too intrusive atm. So i aborted for now.

I commited this now according Dalai's request.

Changed all occurances of LuxRenderAddon.BL_IDNAME --> 'LUXRENDER_RENDER'

COMPAT_ENGINE now indeed 'LUXRENDER_RENDER'.
I tested it also inside blender panes, work fine.
Example:
Code: Select all
Index: release/scripts/startup/bl_ui/properties_data_camera.py
===================================================================
--- release/scripts/startup/bl_ui/properties_data_camera.py   (revision 46782)
+++ release/scripts/startup/bl_ui/properties_data_camera.py   (working copy)
@@ -109,8 +109,9 @@
         col.label(text="Clipping:")
         col.prop(cam, "clip_start", text="Start")
         col.prop(cam, "clip_end", text="End")
+        if context.scene.render.engine == 'LUXRENDER_RENDER':
+            col.prop(cam.luxrender_camera, "use_clipping", text="Use Clipping")

-
class DATA_PT_camera(CameraButtonsPanel, Panel):
     bl_label = "Camera"
     COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'}


resulting panel:
lens_pane_with_lux_property.jpg
lens_pane_with_lux_property.jpg (25.73 KiB) Viewed 174 times



Pls check if i overlooked something.

Jens
User avatar
jensverwiebe
Developer
 
Posts: 2124
Joined: Wed Apr 02, 2008 4:34 pm

Re: Lens clipping not exporting

Postby jensverwiebe » Thu May 24, 2012 6:37 am

I now solved the problem adding lux elements to blender panels :D

I made an example for clipping again, see: http://src.luxrender.net/luxblend25/rev/1d12e7f2463e

Not intrusive, but easy to handle, does not need to code into blender itself, just in our addon.

Now we can discuss what to move else ....

Latest state:
dof_clipping_moved.jpg


Jens
User avatar
jensverwiebe
Developer
 
Posts: 2124
Joined: Wed Apr 02, 2008 4:34 pm

Previous

Return to LuxBlend (Blender Exporter)

Who is online

Users browsing this forum: No registered users and 2 guests