Re: [Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [33462] trunk/blender/source/blender/ python/intern/bpy_rna.c: disallow setting RNA attributes while drawing, this is bad practice

2010-12-07 Thread Doug Hammond
Is there an alternative mechanism for achieving the same result available? >From this revision onwards I've lost the ability to set the object's colour from the LuxRender material editor, which is something our users find really useful. TBH, I'm a bit peeved that something like this would be disab

Re: [Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [33462] trunk/blender/source/blender/ python/intern/bpy_rna.c: disallow setting RNA attributes while drawing, this is bad practice

2010-12-07 Thread Doug Hammond
Actually, the bigger problem that I just forgot about is that using blender lamps in LuxRender is now completely broken too. Cheers, Doug. On 7 December 2010 19:43, Doug Hammond wrote: > Is there an alternative mechanism for achieving the same result available? > From this revision onwards I've

Re: [Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [33462] trunk/blender/source/blender/ python/intern/bpy_rna.c: disallow setting RNA attributes while drawing, this is bad practice

2010-12-07 Thread Campbell Barton
Hi Doug, I'm quite sure that this bad practice to do this but weather it should be disallowed or not is another thing. Having drawing functions change material/scene/object data is error prone IMHO. - Can be used as a sloppy way to initialize variables, With the gotcha that if the panel never show

Re: [Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [33462] trunk/blender/source/blender/ python/intern/bpy_rna.c: disallow setting RNA attributes while drawing, this is bad practice

2010-12-08 Thread bartius crouch
Hi Campbell, What might be helpful is to have an example of recommended practice. Speaking for myself: right now it's often a matter of experimentation to get things to work and this might result in solutions that depend on bad practice. For example, if you wish your add-on to display a panel wit

Re: [Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [33462] trunk/blender/source/blender/ python/intern/bpy_rna.c: disallow setting RNA attributes while drawing, this is bad practice

2010-12-08 Thread Brecht Van Lommel
Hi, On Wed, Dec 8, 2010 at 9:49 AM, bartius crouch wrote: > What might be helpful is to have an example of recommended practice. > Speaking for myself: right now it's often a matter of experimentation to get > things to work and this might result in solutions that depend on bad > practice. We do

Re: [Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [33462] trunk/blender/source/blender/ python/intern/bpy_rna.c: disallow setting RNA attributes while drawing, this is bad practice

2010-12-08 Thread Doug Hammond
Hi, I don't think I'm on bf-python yet, I get most dev comms from bf-comitters and bf-extensions. I will subscribe later. Regarding a use case: the only one I cannot work around at the minute is to set an object's colour from the LuxRender material editor. To do this either requires some sort of

Re: [Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [33462] trunk/blender/source/blender/ python/intern/bpy_rna.c: disallow setting RNA attributes while drawing, this is bad practice

2010-12-08 Thread Kalle-Samuli Riihikoski
Hi! I'm writing 3d-Coat Applink Addon, and this limitation was really harsh for my script. I'm not so skilled programmer in python and I finally got the scirpt as a stable level. Now it's broken again. Right now my biggest error is this: Runtimerror: written in Scene variables not possible. Righ

Re: [Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [33462] trunk/blender/source/blender/ python/intern/bpy_rna.c: disallow setting RNA attributes while drawing, this is bad practice

2010-12-08 Thread Campbell Barton
@Kalle, looked into the 3D Coat script. If you really need to modify a data this can always be made into an operator the user activates from a button but in this case I think it could be avoided. - Setting the scene to GLSL when the panel first draws (first error) Line 57. The way it is now, this

Re: [Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [33462] trunk/blender/source/blender/ python/intern/bpy_rna.c: disallow setting RNA attributes while drawing, this is bad practice

2010-12-10 Thread Kalle-Samuli Riihikoski
Thanks Campbell. That helped a lot. I was able to make working copy again. But I think that it really needs some clean up. Thanks again for pointing the right direction. 2010/12/9 Campbell Barton > @Kalle, looked into the 3D Coat script. > > If you really need to modify a data this can always be