Can't read custom props set on bpy.types.RenderSettings #45934
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#45934
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating System: Windows 8.1 64-bit
Graphics Card: Nvidia GeForce GT 620
Blender Version
Broken: 2.75a
Short description of error
If you set a custom property on
bpy.types.RenderSettings
, for example:Then try to access it in the current scene, you'd expect the result to be
0
but instead you get(<built-in function IntProperty>, {})
:Exact steps for others to reproduce the error
Open the attached blend file and press "Run Script". It should then raise an AssertionError.
Changed status to: 'Open'
Added subscriber: @IsaacWeaver
Forgot to attach the file: rendersettings_bug.blend
Added subscriber: @mont29
Changed status from 'Open' to: 'Archived'
Thnaks for the report, but no bug here, custom properties are only available for IDs (like Scene, but not RenderSettings) and a few other types like e.g. Bones. You cannot extend other types that way. I think what you want to do in this case is create a PropertyGroup gathering all your needed custom settings, and create a PropertyPointer in Scene for the group… Please see the doc for more details.
That should work perfect(maybe even better then my original idea :) Thanks for the clarification!