A few small language/labelling edits to these bundled

scripts
This commit is contained in:
Matt Ebb 2004-07-29 03:05:39 +00:00
parent 891b749d9f
commit 82ccbd8531
4 changed files with 14 additions and 14 deletions

@ -34,10 +34,10 @@ Tooltip: 'Apply the chosen rule to rename all selected objects at once.'
from Blender import *
def replace():
replace = Draw.PupStrInput('replace: ', '', 32)
replace = Draw.PupStrInput('Replace: ', '', 32)
if replace == None: return
with = Draw.PupStrInput('with: ', '', 32)
with = Draw.PupStrInput('With: ', '', 32)
if with == None: return
for ob in Object.GetSelected():
@ -58,20 +58,20 @@ def prefix():
def suffix():
suffix = Draw.PupStrInput('suffix: ', '', 32)
suffix = Draw.PupStrInput('Suffix: ', '', 32)
if suffix == None: return
for ob in Object.GetSelected():
ob.name = ob.name + suffix
def truncate_start():
truncate = Draw.PupIntInput('truncate start: ', 0, 0, 31)
truncate = Draw.PupIntInput('Truncate Start: ', 0, 0, 31)
if truncate != None:
for ob in Object.GetSelected():
ob.name = ob.name[truncate: ]
def truncate_end():
truncate = Draw.PupIntInput('truncate end: ', 0, 0, 31)
truncate = Draw.PupIntInput('Truncate End: ', 0, 0, 31)
if truncate == None: return
for ob in Object.GetSelected():

@ -1,7 +1,7 @@
#!BPY
""" Registration info for Blender menus: <- these words are ignored
Name: 'Fix from Armature'
Name: 'Fix From Armature'
Blender: 232
Group: 'Mesh'
Tip: 'Fix armature deformation.'

@ -1,10 +1,10 @@
#!BPY
""" Registration info for Blender menus: <- these words are ignored
Name: 'Name OBJECT changer'
Name: 'Object Name Editor'
Blender: 232
Group: 'Object'
Tip: 'GUI to select then rename objects.'
Tip: 'GUI to select and rename objects.'
"""
# ----------------------------------------------------------
@ -136,10 +136,10 @@ def DRAW():
Button ("Exit",1,20,1,80,ligne)
Button ("Rename",2,102,1,80,ligne)
Button ("renew",3,184,1,80,ligne)
Button ("Renew",3,184,1,80,ligne)
glRasterPos2f(20, ligne*2-10)
Text(" Poly-RENAME tool")
Text("Object Name Editor")
NEWNAME=String('Add string : ', 4, 150, ligne*2-16, 150, 18, NEWNAME.val,120 )
key=alignment.keys()

@ -1,6 +1,6 @@
#!BPY
""" Registration info for Blender menus: <- these words are ignored
Name: 'UnWeld'
Name: 'Unweld'
Blender: 234
Group: 'Mesh'
Tip: 'Unweld all faces from a selected and common vertex. Made vertex bevelling.'
@ -189,9 +189,9 @@ def D():
size= size.list
glColor3f(0.1, 0.1, 0.15)
glRasterPos2f(10, size[3]-16)
Text("Quit = Qkey")
Text("Quit = Q Key")
glRasterPos2f(10, size[3]-36)
Text("Mouse to the Rigth = Increase")
Text("Mouse to the Right = Increase")
glRasterPos2f(10, size[3]-56)
Text("Mouse to the Left = Decrease")
@ -343,7 +343,7 @@ OBJECT=Blender.Object.GetSelected()
if len(OBJECT)!=0:
if OBJECT[0].getType()=='Mesh':
name = "Un-Weld, OK ? %t| unbind points %x1| with noise ? %x2| middle face ? %x3| static bevel vertex ? %x4| moving bevel vertex ? %x5|"
name = "Unweld %t|Unbind Points %x1|With Noise %x2|Middle Face %x3|Static Bevel Vertex %x4|Moving Bevel Vertex %x5|"
result = Blender.Draw.PupMenu(name)
if result:
me=OBJECT[0].getData()