Skip to main content
Detail added.
Source Link
Mentalist
  • 19.4k
  • 9
  • 98
  • 172

You can useHere's how to set Euler rotation.

obj.rotation_euler = Euler((0.3, 0.3, 0.4), 'XYZ')

First: from mathutils import Euler

Then: obj.rotation_euler = Euler((0.3, 0.3, 0.4), 'XYZ')

If all the other track_to options are overkill. For more attribute references see the Object documentation

You can use

obj.rotation_euler = Euler((0.3, 0.3, 0.4), 'XYZ')

If all the other track_to options are overkill. For more attribute references see the Object documentation

Here's how to set Euler rotation.

First: from mathutils import Euler

Then: obj.rotation_euler = Euler((0.3, 0.3, 0.4), 'XYZ')

If all the other track_to options are overkill. For more attribute references see the Object documentation

Source Link
zeffii
  • 39.9k
  • 9
  • 106
  • 189

You can use

obj.rotation_euler = Euler((0.3, 0.3, 0.4), 'XYZ')

If all the other track_to options are overkill. For more attribute references see the Object documentation