Page MenuHome

API reference : ` = obj` is no longer possible
Closed, ResolvedPublic


Blender Version
Broken: Blender 2.81a

Short description of error

In the quick start document inside the API reference
we can read
"But = obj will work as expected."

This is not true in Blender 2.81a.

Possible fix

One way of selecting objects from the API using bpy.context in Blender 2.81a is as follows

cube =["Cube"]
cube.select_set( state = True, view_layer = bpy.context.view_layer ) = cube

Revisions and Commits