Hello, I’m trying to export the objects details from threejs and position models based on the data of the threejs scene, the object position is working fine, But I’m having issue with the rotation/quaternion.
this is threejs code,
camera_rotation: camera.getWorldQuaternion(new THREE.Quaternion()),
on blender python code
camera.rotation_mode = 'QUATERNION' # Set the rotation mode to 'QUATERNION'
camera.rotation_quaternion = (
camera_rotation['_w'],
camera_rotation['_x'],
camera_rotation['_y'],
camera_rotation['_z']
)
thanks for the help.