Re: [Bf-committers] Calling operators when drawing a panel

2011-02-07 Thread bartius crouch
Campbell wrote: You have a valid point that we need python integration: IMHO scripts should be able to handle notifiers and ability to define update functions for python defined properties. Python defined update functions I can do but handling notifiers should be discussed with Ton first

Re: [Bf-committers] Calling operators when drawing a panel

2011-02-07 Thread Matt Ebb
On Mon, Feb 7, 2011 at 10:36 PM, bartius crouch bartius.cro...@gmail.com wrote: Campbell wrote: You have a valid point that we need python integration: IMHO scripts should be able to handle notifiers and ability to define update functions for python defined properties. Basically we just need

Re: [Bf-committers] Calling operators when drawing a panel

2011-02-06 Thread Lionel Zamouth - BE
Hi Campbell, as I'd like to hide unnecessary properties and avoid any user interaction, those workarounds don't fit in my desired workflow. However, there may be an intermediate solution, propably easier and safer to implement than callbacks: if we have an extra function that we could

Re: [Bf-committers] Calling operators when drawing a panel

2011-02-06 Thread Dan Eicher
On Sun, Feb 6, 2011 at 9:54 PM, Lionel Zamouth - BE lio...@zamouth.be wrote: Hi Campbell, as I'd like to hide unnecessary properties and avoid any user interaction, those workarounds don't fit in my desired workflow. if some_prop: draw code for sometimes hidden properties That doesn't work?

Re: [Bf-committers] Calling operators when drawing a panel

2011-02-06 Thread Lionel Zamouth - BE
Le 07/02/2011 06:02, Dan Eicher a écrit : On Sun, Feb 6, 2011 at 9:54 PM, Lionel Zamouth - BElio...@zamouth.be wrote: Hi Campbell, as I'd like to hide unnecessary properties and avoid any user interaction, those workarounds don't fit in my desired workflow. if some_prop: draw code for

[Bf-committers] Calling operators when drawing a panel

2011-02-05 Thread Lionel Zamouth - BE
Hi, I'm writing here following a chat I had with Campbell about recent changes that made impossible to call operators from the 'draw' section of custom panels. He suggested I submit here my problems with this behaviour. This technique is used since a previous change where directly writing

Re: [Bf-committers] Calling operators when drawing a panel

2011-02-05 Thread Doug Hammond
I'd like to take this opportunity to re-iterate my request for py callbacks on properties, as I believe this would be the correct way to implement the behaviours needed by several addon developers, myself included. Cheers, Doug Hammond On 5 Feb 2011 13:25, Lionel Zamouth - BE lio...@zamouth.be

Re: [Bf-committers] Calling operators when drawing a panel

2011-02-05 Thread Ton Roosendaal
Hi, We've had several people who work on render exporters already complain :) I think the issue is mostly to get a decent method to send notifiers (UI updates) and data-updates (depsgraph) in place, as soon as possible. I'm quite sure this change by Campbell was done to prevent crashing

Re: [Bf-committers] Calling operators when drawing a panel

2011-02-05 Thread Lionel Zamouth - BE
Hi, if you've no alternate method ready, then I kindly suggest you let us do our dirty workarounds in the meantime :-) Cheers, Lionel Le 05/02/2011 15:23, Ton Roosendaal a écrit : Hi, We've had several people who work on render exporters already complain :) I think the issue is mostly to

Re: [Bf-committers] Calling operators when drawing a panel

2011-02-05 Thread Campbell Barton
Hi Lionel, we had this discussion a while ago. for my rationale on why writes are disabled on draw see: http://markmail.org/message/6sg2clhu3ouap2oc I was aware this change might not be practicle in some use cases when making it, so one line comment can enable write access again if this is not