x
x
gets/sets the heading value in degrees
Type: float
Sample
Code
################# Get x
# import Mathutils
import Mathutils
# create a Euler object
originalEuler = Mathutils.Euler( 45.0, 0.0, 0.0)
# get heading value
xHeading = originalEuler.x
################# Set x
# import Mathutils
import Mathutils
# create a Euler object
originalEuler = Mathutils.Euler( 45.0, 0.0, 0.0)
# set heading value
originalEuler.x = 60.0
|