[Bf-committers] Add->Lamp workflow patch

Bart bart at neeneenee.de
Wed Sep 8 09:27:28 CEST 2004

Hey Matt, that's great! The possibility to add specific types of lamp at 
start and the possibilty to change it later is fine!

The only thing thing is i would i would Phton Lights make always 
available, maybe with entry "Photon (Yafray)" and hint "Requires Yafray 
as renderer". So you must not abort adding lamps and after adding you 
can turn Yafray on.

Matt Ebb wrote:
> Hi,
> I've made some changes that fix the somewhat backwards workflow of 
> adding a lamp. My rationale is somewhat similar to what I wrote about 
> the adding constraints UI here: 
> http://www.blender.org/pipermail/tuhopuu-devel/2003-October/000381.html
> In short, for any other lamp type than the normal 'Lamp', like a Spot, 
> it's quite a convoluted process to add. One must add a 'lamp', then go 
> to the lamp buttons, find the button for 'Spot' and change it, then go 
> back to the 3D View and start rotating it around and moving it into 
> place. Problems with this are:
> a) It's slow, taking many mouse clicks/hotkey presses
> b) It interrupts my thought processes - I'm 'thinking in 3d' about 
> adding objects and manipulating things in the View, but then have to go 
> and switch over to thinking about looking for buttons etc. This 
> switching of mental gears contributes to the slowness, and also breaks 
> concentration.
> c) It's silly that if I want to add a certain type of lamp, like a Spot, 
> I have to first add a type of lamp that I *don't* want, then fix this 
> 'mistake' myself.
> So, this patch basically makes a submenu in the Add menus in header and 
> toolbox, so you can select (and add) what type of lamp you want right 
> away, similar to other object types:
> (screenshot) http://mke3.net/blender/interface/menus/lampmenu.png
> 'Photon' also appears in the list when yafray is selected as a renderer.
> I'd appreciate it if someone in-the-know could check over the patch for 
> correctness, since although I've tried to keep to conventions and the 
> code works fine here, I'm not 100% sure that it's the right way to 
> implement this. The toolbox code for changing the menu based on yafray 
> being selected is also quite nasty, but I don't know of any other way to 
> overcome it...
> Cheers,
> Matt
> ------------------------------------------------------------------------
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at projects.blender.org
> http://projects.blender.org/mailman/listinfo/bf-committers

|      |
| (O)(O)        Bart.
C      _)       bart at neeneenee.de
|   ,_/
|   /    - Ich bin nicht berechtigt Aushilfslehrer zu feuern -
/   \

More information about the Bf-committers mailing list