Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWillian Padovani Germano <wpgermano@gmail.com>2006-01-29 22:17:53 +0300
committerWillian Padovani Germano <wpgermano@gmail.com>2006-01-29 22:17:53 +0300
commit4b01aa7aa57d144baf1739e4bcd65716f95dabfd (patch)
tree704a96276eab337b8be793cf1ba8679dcf7178dc /release/scripts/Axiscopy.py
parent282fbcc763857cf5a6b81f65ddffd589462836b1 (diff)
Scripts:
The orange -> HEAD merge reverted some scripts to older versions. This only affected the ones that already existed before the orange branch. Minor issue, easy to fix. All in all, kudos to kaito, Hos and others for all the hard work in bringing (coding, merging) all these changes to the main branch.
Diffstat (limited to 'release/scripts/Axiscopy.py')
-rw-r--r--release/scripts/Axiscopy.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/release/scripts/Axiscopy.py b/release/scripts/Axiscopy.py
index 0a9a411ef08..a6fa2e8b627 100644
--- a/release/scripts/Axiscopy.py
+++ b/release/scripts/Axiscopy.py
@@ -2,7 +2,7 @@
""" Registration info for Blender menus: <- these words are ignored
Name: 'Axis Orientation Copy'
-Blender: 233
+Blender: 239
Group: 'Object'
Tip: 'Copy the axis orientation of the active object to all selected mesh objects'
"""
@@ -10,7 +10,7 @@ Tip: 'Copy the axis orientation of the active object to all selected mesh object
__author__ = "A Vanpoucke (xand)"
__url__ = ("blender", "elysiun",
"French Blender support forum, http://www.zoo-logique.org/3D.Blender/newsportal/thread.php?group=3D.Blender")
-__version__ = "1.1 11/05/04"
+__version__ = "2 17/12/05"
__bpydoc__ = """\
This script copies the axis orientation -- X, Y and Z rotations -- of the
@@ -75,7 +75,7 @@ from Blender.Mathutils import *
def applyTransform(mesh,mat):
for v in mesh.verts:
- vec = VecMultMat(v.co,mat)
+ vec = v.co*mat
v.co[0], v.co[1], v.co[2] = vec[0], vec[1], vec[2]
@@ -87,13 +87,13 @@ lenob=len(oblist)
error = 0
for o in oblist[1:]:
if o.getType() != "Mesh":
- Draw.PupMenu("ERROR%t|Selected objects must be meshes")
+ Draw.PupMenu("Error: selected objects must be meshes")
error = 1
if not error:
if lenob<2:
- Draw.PupMenu("ERROR%t|You must select at least 2 objects")
- else :
+ Draw.PupMenu("Error: you must select at least 2 objects")
+ else :
source=oblist[0]
nsource=source.name
texte="Copy axis orientation from: " + nsource + " ?%t|OK"
@@ -102,9 +102,9 @@ if not error:
for cible in oblist[1:]:
if source.rot!=cible.rot:
- rotcible=cible.mat.toEuler().toMatrix()
- rotsource=source.mat.toEuler().toMatrix()
- rotsourcet = CopyMat(rotsource)
+ rotcible=cible.mat.rotationPart().toEuler().toMatrix()
+ rotsource=source.mat.rotationPart().toEuler().toMatrix()
+ rotsourcet = Matrix(rotsource)
rotsourcet.invert()
mat=rotcible*rotsourcet
ncible=cible.name