Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'doc/python_api/rst/info_quickstart.rst')
-rw-r--r--doc/python_api/rst/info_quickstart.rst7
1 files changed, 3 insertions, 4 deletions
diff --git a/doc/python_api/rst/info_quickstart.rst b/doc/python_api/rst/info_quickstart.rst
index 75aeb765f53..f4de6b955e5 100644
--- a/doc/python_api/rst/info_quickstart.rst
+++ b/doc/python_api/rst/info_quickstart.rst
@@ -228,13 +228,12 @@ Note that the context is read-only.
These values cannot be modified directly,
though they may be changed by running API functions or by using the data API.
-So ``bpy.context.object = obj`` will raise an error.
-
-But ``bpy.context.scene.objects.active = obj`` will work as expected.
+So ``bpy.context.active_object = obj`` will raise an error.
+But ``bpy.context.view_layer.objects.active = obj`` works as expected.
The context attributes change depending on where they are accessed.
-The 3D view has different context members than the console,
+The 3D Viewport has different context members than the Python Console,
so take care when accessing context attributes that the user state is known.
See :mod:`bpy.context` API reference.