Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
blender-addons
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
blender
blender-addons
Commits
b473917e
Commit
b473917e
authored
14 years ago
by
Campbell Barton
Browse files
Options
Downloads
Patches
Plain Diff
update operator names from svn.
parent
78b8dbd8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
space_view3d_align_tools.py
+26
-26
26 additions, 26 deletions
space_view3d_align_tools.py
with
26 additions
and
26 deletions
space_view3d_align_tools.py
+
26
−
26
View file @
b473917e
...
@@ -63,34 +63,34 @@ class AlignUi(bpy.types.Panel):
...
@@ -63,34 +63,34 @@ class AlignUi(bpy.types.Panel):
col
=
layout
.
column
(
align
=
False
)
col
=
layout
.
column
(
align
=
False
)
col
.
operator
(
"
object.
A
lign
Objects
"
,
text
=
"
XYZ
"
)
col
.
operator
(
"
object.
a
lign
"
,
text
=
"
XYZ
"
)
col
=
layout
.
column
()
col
=
layout
.
column
()
col
.
label
(
text
=
"
Align Location:
"
,
icon
=
'
MAN_TRANS
'
)
col
.
label
(
text
=
"
Align Location:
"
,
icon
=
'
MAN_TRANS
'
)
col
=
layout
.
column_flow
(
columns
=
5
,
align
=
True
)
col
=
layout
.
column_flow
(
columns
=
5
,
align
=
True
)
col
.
operator
(
"
object.
A
lign
ObjectsL
ocation
X
"
,
text
=
"
X
"
)
col
.
operator
(
"
object.
a
lign
_l
ocation
_x
"
,
text
=
"
X
"
)
col
.
operator
(
"
object.
A
lign
ObjectsL
ocation
Y
"
,
text
=
"
Y
"
)
col
.
operator
(
"
object.
a
lign
_l
ocation
_y
"
,
text
=
"
Y
"
)
col
.
operator
(
"
object.
A
lign
ObjectsL
ocation
Z
"
,
text
=
"
Z
"
)
col
.
operator
(
"
object.
a
lign
_l
ocation
_z
"
,
text
=
"
Z
"
)
col
.
operator
(
"
object.
A
lign
ObjectsL
ocation
A
ll
"
,
text
=
"
All
"
)
col
.
operator
(
"
object.
a
lign
_l
ocation
_a
ll
"
,
text
=
"
All
"
)
col
=
layout
.
column
()
col
=
layout
.
column
()
col
.
label
(
text
=
"
Align Rotation:
"
,
icon
=
'
MAN_ROT
'
)
col
.
label
(
text
=
"
Align Rotation:
"
,
icon
=
'
MAN_ROT
'
)
col
=
layout
.
column_flow
(
columns
=
5
,
align
=
True
)
col
=
layout
.
column_flow
(
columns
=
5
,
align
=
True
)
col
.
operator
(
"
object.
A
lign
ObjectsR
otation
X
"
,
text
=
"
X
"
)
col
.
operator
(
"
object.
a
lign
_r
otation
_x
"
,
text
=
"
X
"
)
col
.
operator
(
"
object.
A
lign
ObjectsR
otation
Y
"
,
text
=
"
Y
"
)
col
.
operator
(
"
object.
a
lign
_r
otation
_y
"
,
text
=
"
Y
"
)
col
.
operator
(
"
object.
A
lign
ObjectsR
otation
Z
"
,
text
=
"
Z
"
)
col
.
operator
(
"
object.
a
lign
_r
otation
_z
"
,
text
=
"
Z
"
)
col
.
operator
(
"
object.
A
lign
ObjectsR
otation
A
ll
"
,
text
=
"
All
"
)
col
.
operator
(
"
object.
a
lign
_r
otation
_a
ll
"
,
text
=
"
All
"
)
col
=
layout
.
column
()
col
=
layout
.
column
()
col
.
label
(
text
=
"
Align Scale:
"
,
icon
=
'
MAN_SCALE
'
)
col
.
label
(
text
=
"
Align Scale:
"
,
icon
=
'
MAN_SCALE
'
)
col
=
layout
.
column_flow
(
columns
=
5
,
align
=
True
)
col
=
layout
.
column_flow
(
columns
=
5
,
align
=
True
)
col
.
operator
(
"
object.
A
lign
O
bjects
S
cale
X
"
,
text
=
"
X
"
)
col
.
operator
(
"
object.
a
lign
_o
bjects
_s
cale
_x
"
,
text
=
"
X
"
)
col
.
operator
(
"
object.
A
lign
O
bjects
S
cale
Y
"
,
text
=
"
Y
"
)
col
.
operator
(
"
object.
a
lign
_o
bjects
_s
cale
_y
"
,
text
=
"
Y
"
)
col
.
operator
(
"
object.
A
lign
O
bjects
S
cale
Z
"
,
text
=
"
Z
"
)
col
.
operator
(
"
object.
a
lign
_o
bjects
_s
cale
_z
"
,
text
=
"
Z
"
)
col
.
operator
(
"
object.
A
lign
O
bjects
S
cale
A
ll
"
,
text
=
"
All
"
)
col
.
operator
(
"
object.
a
lign
_o
bjects
_s
cale
_a
ll
"
,
text
=
"
All
"
)
##Align all
##Align all
...
@@ -155,7 +155,7 @@ def ScaleZ(context):
...
@@ -155,7 +155,7 @@ def ScaleZ(context):
## Align All Rotation And Location
## Align All Rotation And Location
class
AlignOperator
(
bpy
.
types
.
Operator
):
class
AlignOperator
(
bpy
.
types
.
Operator
):
''''''
''''''
bl_idname
=
"
object.
A
lign
Objects
"
bl_idname
=
"
object.
a
lign
"
bl_label
=
"
Align Selected To Active
"
bl_label
=
"
Align Selected To Active
"
@classmethod
@classmethod
...
@@ -170,7 +170,7 @@ class AlignOperator(bpy.types.Operator):
...
@@ -170,7 +170,7 @@ class AlignOperator(bpy.types.Operator):
## Align LocationAll
## Align LocationAll
class
AlignLocationOperator
(
bpy
.
types
.
Operator
):
class
AlignLocationOperator
(
bpy
.
types
.
Operator
):
''''''
''''''
bl_idname
=
"
object.
A
lign
ObjectsL
ocation
A
ll
"
bl_idname
=
"
object.
a
lign
_l
ocation
_a
ll
"
bl_label
=
"
Align Selected Location To Active
"
bl_label
=
"
Align Selected Location To Active
"
@classmethod
@classmethod
...
@@ -183,7 +183,7 @@ class AlignLocationOperator(bpy.types.Operator):
...
@@ -183,7 +183,7 @@ class AlignLocationOperator(bpy.types.Operator):
## Align LocationX
## Align LocationX
class
AlignLocationXOperator
(
bpy
.
types
.
Operator
):
class
AlignLocationXOperator
(
bpy
.
types
.
Operator
):
''''''
''''''
bl_idname
=
"
object.
A
lign
ObjectsL
ocation
X
"
bl_idname
=
"
object.
a
lign
_l
ocation
_x
"
bl_label
=
"
Align Selected Location X To Active
"
bl_label
=
"
Align Selected Location X To Active
"
@classmethod
@classmethod
...
@@ -196,7 +196,7 @@ class AlignLocationXOperator(bpy.types.Operator):
...
@@ -196,7 +196,7 @@ class AlignLocationXOperator(bpy.types.Operator):
## Align LocationY
## Align LocationY
class
AlignLocationYOperator
(
bpy
.
types
.
Operator
):
class
AlignLocationYOperator
(
bpy
.
types
.
Operator
):
''''''
''''''
bl_idname
=
"
object.
A
lign
ObjectsL
ocation
Y
"
bl_idname
=
"
object.
a
lign
_l
ocation
_y
"
bl_label
=
"
Align Selected Location Y To Active
"
bl_label
=
"
Align Selected Location Y To Active
"
@classmethod
@classmethod
...
@@ -209,7 +209,7 @@ class AlignLocationYOperator(bpy.types.Operator):
...
@@ -209,7 +209,7 @@ class AlignLocationYOperator(bpy.types.Operator):
## Align LocationZ
## Align LocationZ
class
AlignLocationZOperator
(
bpy
.
types
.
Operator
):
class
AlignLocationZOperator
(
bpy
.
types
.
Operator
):
''''''
''''''
bl_idname
=
"
object.
A
lign
ObjectsL
ocation
Z
"
bl_idname
=
"
object.
a
lign
_l
ocation
_z
"
bl_label
=
"
Align Selected Location Z To Active
"
bl_label
=
"
Align Selected Location Z To Active
"
@classmethod
@classmethod
...
@@ -224,7 +224,7 @@ class AlignLocationZOperator(bpy.types.Operator):
...
@@ -224,7 +224,7 @@ class AlignLocationZOperator(bpy.types.Operator):
## Align RotationAll
## Align RotationAll
class
AlignRotationOperator
(
bpy
.
types
.
Operator
):
class
AlignRotationOperator
(
bpy
.
types
.
Operator
):
''''''
''''''
bl_idname
=
"
object.
A
lign
ObjectsR
otation
A
ll
"
bl_idname
=
"
object.
a
lign
_r
otation
_a
ll
"
bl_label
=
"
Align Selected Rotation To Active
"
bl_label
=
"
Align Selected Rotation To Active
"
@classmethod
@classmethod
...
@@ -237,7 +237,7 @@ class AlignRotationOperator(bpy.types.Operator):
...
@@ -237,7 +237,7 @@ class AlignRotationOperator(bpy.types.Operator):
## Align RotationX
## Align RotationX
class
AlignRotationXOperator
(
bpy
.
types
.
Operator
):
class
AlignRotationXOperator
(
bpy
.
types
.
Operator
):
''''''
''''''
bl_idname
=
"
object.
A
lign
ObjectsR
otation
X
"
bl_idname
=
"
object.
a
lign
_r
otation
_x
"
bl_label
=
"
Align Selected Rotation X To Active
"
bl_label
=
"
Align Selected Rotation X To Active
"
@classmethod
@classmethod
...
@@ -250,7 +250,7 @@ class AlignRotationXOperator(bpy.types.Operator):
...
@@ -250,7 +250,7 @@ class AlignRotationXOperator(bpy.types.Operator):
## Align RotationY
## Align RotationY
class
AlignRotationYOperator
(
bpy
.
types
.
Operator
):
class
AlignRotationYOperator
(
bpy
.
types
.
Operator
):
''''''
''''''
bl_idname
=
"
object.
A
lign
ObjectsR
otation
Y
"
bl_idname
=
"
object.
a
lign
_r
otation
_y
"
bl_label
=
"
Align Selected Rotation Y To Active
"
bl_label
=
"
Align Selected Rotation Y To Active
"
@classmethod
@classmethod
...
@@ -263,7 +263,7 @@ class AlignRotationYOperator(bpy.types.Operator):
...
@@ -263,7 +263,7 @@ class AlignRotationYOperator(bpy.types.Operator):
## Align RotationZ
## Align RotationZ
class
AlignRotationZOperator
(
bpy
.
types
.
Operator
):
class
AlignRotationZOperator
(
bpy
.
types
.
Operator
):
''''''
''''''
bl_idname
=
"
object.
A
lign
ObjectsR
otation
Z
"
bl_idname
=
"
object.
a
lign
_r
otation
_z
"
bl_label
=
"
Align Selected Rotation Z To Active
"
bl_label
=
"
Align Selected Rotation Z To Active
"
@classmethod
@classmethod
...
@@ -277,7 +277,7 @@ class AlignRotationZOperator(bpy.types.Operator):
...
@@ -277,7 +277,7 @@ class AlignRotationZOperator(bpy.types.Operator):
## Scale All
## Scale All
class
AlignScaleOperator
(
bpy
.
types
.
Operator
):
class
AlignScaleOperator
(
bpy
.
types
.
Operator
):
''''''
''''''
bl_idname
=
"
object.
A
lign
O
bjects
S
cale
A
ll
"
bl_idname
=
"
object.
a
lign
_o
bjects
_s
cale
_a
ll
"
bl_label
=
"
Align Selected Scale To Active
"
bl_label
=
"
Align Selected Scale To Active
"
@classmethod
@classmethod
...
@@ -290,7 +290,7 @@ class AlignScaleOperator(bpy.types.Operator):
...
@@ -290,7 +290,7 @@ class AlignScaleOperator(bpy.types.Operator):
## Align ScaleX
## Align ScaleX
class
AlignScaleXOperator
(
bpy
.
types
.
Operator
):
class
AlignScaleXOperator
(
bpy
.
types
.
Operator
):
''''''
''''''
bl_idname
=
"
object.
A
lign
O
bjects
S
cale
X
"
bl_idname
=
"
object.
a
lign
_o
bjects
_s
cale
_x
"
bl_label
=
"
Align Selected Scale X To Active
"
bl_label
=
"
Align Selected Scale X To Active
"
@classmethod
@classmethod
...
@@ -303,7 +303,7 @@ class AlignScaleXOperator(bpy.types.Operator):
...
@@ -303,7 +303,7 @@ class AlignScaleXOperator(bpy.types.Operator):
## Align ScaleY
## Align ScaleY
class
AlignScaleYOperator
(
bpy
.
types
.
Operator
):
class
AlignScaleYOperator
(
bpy
.
types
.
Operator
):
''''''
''''''
bl_idname
=
"
object.
A
lign
O
bjects
S
cale
Y
"
bl_idname
=
"
object.
a
lign
_o
bjects
_s
cale
_y
"
bl_label
=
"
Align Selected Scale Y To Active
"
bl_label
=
"
Align Selected Scale Y To Active
"
@classmethod
@classmethod
...
@@ -316,7 +316,7 @@ class AlignScaleYOperator(bpy.types.Operator):
...
@@ -316,7 +316,7 @@ class AlignScaleYOperator(bpy.types.Operator):
## Align ScaleZ
## Align ScaleZ
class
AlignScaleZOperator
(
bpy
.
types
.
Operator
):
class
AlignScaleZOperator
(
bpy
.
types
.
Operator
):
''''''
''''''
bl_idname
=
"
object.
A
lign
O
bjects
S
cale
Z
"
bl_idname
=
"
object.
a
lign
_o
bjects
_s
cale
_z
"
bl_label
=
"
Align Selected Scale Z To Active
"
bl_label
=
"
Align Selected Scale Z To Active
"
@classmethod
@classmethod
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment