[Bf-taskforce25] access to objects

Campbell Barton ideasman42 at gmail.com
Mon Aug 10 14:14:53 CEST 2009


try context.scene
depending on how you run the script you may be able to get this from
the context, panels and operators get a context you can run
dir(context) to see whats available.

On Mon, Aug 10, 2009 at 2:32 AM, Stefaan
michielsen<stefaan.michielsen at gmail.com> wrote:
> Hi, i've started to integrate some of my favorite scripts into buttons
> but something I use often, like
>
>> scn=bpy.data.scenes.active
>
> doesn't work saying
>>
>>     scn= bpy.data.scenes.active
>>
>> AttributeError: 'PropertyRNA' object has no attribute 'active'
>
> Is there a new way of dealing with this, if so where can i find info about
> this?
>
> _______________________________________________
> Bf-taskforce25 mailing list
> Bf-taskforce25 at blender.org
> http://lists.blender.org/mailman/listinfo/bf-taskforce25
>
>



-- 
- Campbell


More information about the Bf-taskforce25 mailing list