Hi, I’m having issues with euler rotation. I can’t figure out why my euler rotation is not saving inbetween for loop iterations.
bit of code:
The problem is that the print eulerVar returns [0.0, 0.0, 0.0] even though I just set its value. I’ve tried using eulerVar.setValue() function aswell, but still returns 0.
import pymel.core.datatypes as dt
eulerVar = dt.EulerRotation()for letter in strArr:
if letter is “A”:
use eulerVar in another function.
elif letter is “B”:
eulerVar = dt.EulerRotation([45.0, 0.0, 0.0], unit=‘degrees’)
print eulerVar
The print eulerVar line returns [0.0, 0.0, 0.0] even though I just set its value. I’ve also tried using setValue() function but it returns 0 aswell.