Copy data path instructions is incorrect #84430
Labels
No Label
Meta
Good First Issue
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
Eevee & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds, Tests & Devices
Module
Python API
Module
Rendering & Cycles
Module
Sculpt, Paint & Texture
Module
User Interface
Module
VFX & Video
Priority
High
Priority
Low
Priority
Normal
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Information 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
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-manual#84430
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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?
In this section: https://docs.blender.org/api/2.91/info_api_reference.html#copy-data-path
The second paragraph mentions a tooltip that shows the data path, but that isn't there anymore in 2.91 (at least not on by default).
The result of the "Copy Data Path" is 'modifiers["Subdivision"].levels' and not 'modifiers["Subsurf"].levels', so the console command should rather be:
bpy.context.active_object.modifiers["Subdivision"].levels
And the following command should be:
bpy.context.active_object.modifiers["Subsurf"].levels = 2
Also, recommend moving the third paragraph starting with "Note that the text copied..." to between the two commands since it's confusing to talk about copying text before it's done with the "Copy Data Path" option.
Added subscriber: @norulesjustfeels
Just realized that I had to enable the Python Tooltips in the display preferences to see the tooltip. I don't think I saw that anywhere in the API docs, so it might be a good idea to add that explicitly since it looks like all the API docs assume both Developer Extras and Python Tooltips are enabled.
The rest of the issues raised in the bug still need to be considered.
This issue was referenced by blender/blender@a9c607e60e
Changed status from 'Needs Triage' to: 'Resolved'