Removing View Layer with Blender Python API

To remove an existing View Layer using the Blender Python API, we need to execute the remove() method from the list of all view layers of the current scene.

To remove a view layer by name, we need to loop through all the view layers of the scene:

and if the layer name matches the given one, call the remove() method:

Full code:

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comment
Newest
Oldest Most Voted
Inline Feedbacks
View all comments