Cursor_location as Scene attribute?

Hello,

A couple of weeks ago this line of code worked well in 2.8:
bpy.context.scene.cursor_location = (x, y, z)
Current version of Blender returns the following error:
'Scene' object has no attribute 'cursor_location'

How am I supposed to set cursor’s location?

It is now: context.scene.cursor.location

2 Likes

Thanks. Where can I follow all these API changes? My scripts breals every week or so because of various API changes.

Release Notes:
https://wiki.blender.org/wiki/Reference/Release_Notes/2.80/Python_API

Cheat Sheet

2 Likes