Page Menu
Home
Search
Configure Global Search
Log In
Files
F1136
mathtest.py
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Authored By
Ken Hughes (khughes)
Nov 13 2013, 12:54 PM
Size
689 B
Subscribers
None
mathtest.py
View Options
import
Blender
print
'------------'
print
'------------'
e
=
Blender
.
Mathutils
.
Euler
([
0
,
1
,
2
])
print
e
.
unique
(),
e
print
e
.
rotate
(
20.0
,
'x'
),
e
print
e
.
zero
(),
e
e1
=
Blender
.
Mathutils
.
Euler
([
0
,
1
,
2
])
print
Blender
.
Mathutils
.
RotateEuler
(
e1
,
-
20.0
,
'x'
),
e1
del
e
,
e1
print
'------------'
v
=
Blender
.
Mathutils
.
Vector
([
0
,
1
,
2
])
nv
=-
v
;
print
nv
,
v
print
v
.
normalize
(),
v
print
v
.
negate
(),
v
print
v
.
resize4D
(),
v
print
v
.
resize3D
(),
v
print
v
.
resize2D
(),
v
print
v
.
zero
(),
v
del
nv
,
v
print
'------------'
p
=
Blender
.
Mathutils
.
Vector
([
0
,
1
,
2
])
.
toPoint
()
np
=-
p
;
print
np
,
p
print
p
.
zero
(),
p
del
np
,
p
print
'------------'
m
=
Blender
.
Mathutils
.
RotationMatrix
(
45
,
4
,
'x'
)
print
~
m
print
m
b
=
Blender
.
Armature
.
Bone
.
New
()
File Metadata
Details
Mime Type
text/plain
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
13/43/55646ca368f616083264d9345cb6
Event Timeline
Log In to Comment