# rotation\_quaternion

**URL:** <https://blenderartists.org/t/rotation-quaternion/558267>\
**Category:** Python Support\
**Created:** [November 30, 2012, 7:06am UTC](https://blenderartists.org/t/rotation-quaternion/558267 "2012-11-30T07:06:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexx600](https://blenderartists.org/letter_avatar_proxy/v4/letter/a/5f9b8f/32.png) [@alexx600](https://blenderartists.org/u/alexx600)\
**Post date:** [November 30, 2012, 7:06am UTC](https://blenderartists.org/t/rotation-quaternion/558267/1 "2012-11-30T07:06:15Z")

</div>

Hi:) I have small probelm.  
I would like to export rotation data to xml file. The main problem is that I want to import that data in 3ds Max. In 3ds Max rotation is rotation\_quaternion not rotation\_euler. I thought that it is not problem because blender has got rotation\_quaternion. I do not know why but if I am changing rotation of object

```auto
bpy.data.objects[0].rotation_euler

```

is changing and object

```auto
bpy.data.objects[0].rotation_quaternion

```

is still the same(

```auto
Quaternion((1.0, 0.0, 0.0, 0.0))

```

)  
I would say that it is not normal,isn’t it?

---

<div class="post-metadata">

**Author:** ![Terry](https://blenderartists.org/letter_avatar_proxy/v4/letter/t/b9e5f3/32.png) [@Terry](https://blenderartists.org/u/Terry)\
**Post date:** [November 30, 2012, 7:15am UTC](https://blenderartists.org/t/rotation-quaternion/558267/2 "2012-11-30T07:15:52Z")

</div>

Try a bpy.context.scene.update() call after you change your Euler to have Blender update the quaternion data.

---

<div class="post-metadata">

**Author:** ![alexx600](https://blenderartists.org/letter_avatar_proxy/v4/letter/a/5f9b8f/32.png) [@alexx600](https://blenderartists.org/u/alexx600)\
**Post date:** [November 30, 2012, 7:25am UTC](https://blenderartists.org/t/rotation-quaternion/558267/3 "2012-11-30T07:25:37Z")

</div>

I didn’t changed

```auto
bpy.data.objects[1].rotation_mode = 'QUATERNION'

```
