Log In
New Account
Home My Page Projects Blender 2.x BF release
Summary Activity Tracker SCM Files

Blender 2.6 Bug Tracker: Browse

[#26098] python API: quaternion.rotate never seems to work.

Date:
2011-02-15 17:50
Priority:
3
State:
Closed
Submitted by:
Lucas Bla (pompei2)
Assigned to:
Campbell Barton (campbellbarton)
Category:
Python
Status:
Fixed / Closed
Relates to:
Duplicates:
Patches:
 
Summary:
python API: quaternion.rotate never seems to work.
Detailed description
Hi, this is my first bugreport, I hope it's not too bad.

My blender version:
The splashscreen doesn't show the revision. It is a build from build.opensuse.org/home:djs_core, the version shown in my opensuse installer states "2.56.34784-101.1"

How to reproduce?
open blender, open a python console window in it, type in:
>>> import mathutils
>>> q = mathutils.Quaternion()
>>> q.rotate(mathutils.Quaternion())
Traceback (most recent call last):
File "<blender_console>", line 1, in <module>
TypeError: quaternion.rotate(value): expected a Euler, Quaternion or Matrix type, found tuple

Same result for:
>>> q.rotate(mathutils.Quaternion().to_matrix())


So it looks to me like the function plain doesn't work. Having looked at http://wiki.blender.org/index.php/Dev:2.5/Source/Development/Todo/Scripting I didn't see any mention of it (or of quaternions), and http://www.blender.org/documentation/250PythonDoc/contents.html cites it as unlikely to change.

Followup

Message
  • Date: 2011-02-16 03:07
  • Sender: Campbell Barton
  • fixed r34886. argument settings for quaternion was incorrect.
 

Attached Files:

No Files Currently Attached

Changes:

Field Old Value Date By
status_idOpen2011-02-16 03:07campbellbarton
close_dateNone2011-02-16 03:07campbellbarton
assigned_tonone2011-02-16 03:07campbellbarton
StatusNew2011-02-16 03:07campbellbarton