Issue 5571
object.GetControl("Transform").GetDataBlock().SetValue(timemark, new_transform_object) set double angle
# Get new data holders for tranformation
scale = RLPy.RVector3()
rot = RLPy.RQuaternion.IDENTITY
pos = RLPy.RVector3.UNIT_XYZ
# Set old data
scale_old=transform_key.GetTransform().S()
rot_old=transform_key.GetTransform().R()
pos_old=transform_key.GetTransform().T()
# Add old values in new variables
scale.x=scale_old.x
scale.y=scale_old.y
scale.z=scale_old.z
rot.x=rot_old.x
rot.y=rot_old.y
rot.z=rot_old.z
pos.x=pos_old.x
pos.y=pos_old.y
pos.z=pos_old.z
# set new angle
rot.x=0.24... (14 degrees)
timemark=RLPy.RGlobal.GetTime()
new_transform_object = RLPy.RTransform(scale, rot, pos)
object.GetControl("Transform").GetDataBlock().SetValue(timemark, new_transform_object)
In iClone the angle is now 29 degrees (0.5 around double of input)
Submitted byThe-any-Key
Jan 12, 2019