I have this code:
import bpy
# Reset 3D Cursor Rotation
bpy.context.scene.cursor.rotation_euler[0] = 0
bpy.context.scene.cursor.rotation_euler[1] = 0
bpy.context.scene.cursor.rotation_euler[2] = 0
Instead of referencing the same main parameter on three lines, can I write this in a single line?
Pseudocode:
# My question refers to what's within the < > chars; I want to include all 3 params within the brackets
bpy.context.scene.cursor.rotation_euler[<0 to 2>] = 0
bpy.context.scene.cursor.rotation_euler = [0] * 3
?bpy.context.scene.cursor.rotation_euler[0:3] = [0] * 3
? $\endgroup$cursor.rotation_euler = (0,0,0)
?? $\endgroup$bpy.context.scene.cursor.rotation_euler = (0,0,0)
). So please add it as an answer, Robin, so I can mark the question solved. Many thanks to you as well, Gorgious! $\endgroup$