Fix #136395: Python API Quickstart uses outdated API
Replace with a working example. Pull Request: https://projects.blender.org/blender/blender/pulls/136882
This commit is contained in:
committed by
Philipp Oeser
parent
78c0ca1efb
commit
1750a2bbc8
@@ -363,8 +363,8 @@ so these are accessed as normal Python types.
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
# setting multiple camera overlay guides
|
||||
bpy.context.scene.camera.data.show_guide = {'GOLDEN', 'CENTER'}
|
||||
# setting multiple snap targets
|
||||
bpy.context.scene.tool_settings.snap_elements_base = {'VERTEX', 'EDGE'}
|
||||
|
||||
# passing as an operator argument for report types
|
||||
self.report({'WARNING', 'INFO'}, "Some message!")
|
||||
|
||||
Reference in New Issue
Block a user