Indirect Data Access brush command reference not working #84432

Closed
opened 2021-01-05 21:56:39 +01:00 by Leon Nicholls · 3 comments

In this section: https://docs.blender.org/api/2.91/info_api_reference.html#indirect-data-access

After following the instructions in this section, I get an error for 'bpy.context.brush' in the Python console:

Traceback (most recent call last):
  File "<blender_console>", line 1, in <module>
AttributeError: 'Context' object has no attribute 'brush'

The Python tooltip for the contrast field is:
bpy.data.textures["Texture.001"].contrast

This works fine in the Python console.

Not sure if I have to do anything to ensure the context is correct since it wasn't clear from the docs (the sculpted object was selected), but literally following the instructions in this section give errors for the Python commands.

In this section: https://docs.blender.org/api/2.91/info_api_reference.html#indirect-data-access After following the instructions in this section, I get an error for 'bpy.context.brush' in the Python console: ``` Traceback (most recent call last): File "<blender_console>", line 1, in <module> AttributeError: 'Context' object has no attribute 'brush' ``` The Python tooltip for the contrast field is: bpy.data.textures["Texture.001"].contrast This works fine in the Python console. Not sure if I have to do anything to ensure the context is correct since it wasn't clear from the docs (the sculpted object was selected), but literally following the instructions in this section give errors for the Python commands.
Author

Added subscriber: @norulesjustfeels

Added subscriber: @norulesjustfeels

This issue was referenced by blender/blender@b138c8f5b3

This issue was referenced by blender/blender@b138c8f5b3a63b0cf10b20e874f6a16b8393485b
Member

Changed status from 'Needs Triage' to: 'Resolved'

Changed status from 'Needs Triage' to: 'Resolved'
Aaron Carlisle self-assigned this 2021-01-07 01:34:31 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-manual#84432
No description provided.