Hi,
So I have built a GUI (for a rig generator).In that GUI I have an text
entry for the name of the character and a button with the command that
calls an external script.Here is an extract of the code:
#----charNameGrp
charNameGrp=pmw.Group(setupTab,tag_text="character's
name",ring_borderwidth=2,tag_font=("Helvetica", "8", "bold"))
#----charNameEntry
charNameEntry=Entry(charNameGrp.interior(),width=22,borderwidth=1)
charName=charNameEntry.get()
#button
createCharButton=Button(createStructureGrp.interior
(),borderwidth=1,image=skeleton,command=makeSkeleton(charName))
Now I have another script not included in the GUI, to make the
joint.Here is the extract:
def makeSkeleton(charName):
#1-create joints
joint(name=(charName + "_c_hip_jnt_H"),p=(0,100,0))
So now I open my GUI and in the entry lets say that I wright: Bob.
The problem is that when I click on the button I get a joint named
_c_hip_jnt_H
when it is supposed to be
Bob_c_hip_H
any idea what am I doing wrong?Why the entry text doesn´t appear?
Thx
--
http://groups.google.com/group/python_inside_maya