Community
Maya Forum
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Line 15: name 'pkForm' is not defined. What do I do?

0 REPLIES 0
Reply
Message 1 of 1
p.kelley1
108 Views, 0 Replies

Line 15: name 'pkForm' is not defined. What do I do?

Import script isn't working.

 

'''
This script will allow you to selection parts of a face
version
V001
'''
import maya.cmds as cmds

def rightUpperEyeButtonPush(*args):
print ('rightUpperEyeButtonPush has been pressed')

pkWindow = cmds.window(s=False,width=400, height=526, t='Character Picker')
pkform= cmds.formLayout(numberOfDivisions=100,w=400,h=526,e=False)
pkBgImage= cmds.image( image='faceExample.jpg' )
b1 = cmds.button(w=20,h=20,l='',bgc=[1,0,0], command=rightUpperEyeButtonPush)
cmds.formLayout(pkForm, edit= True, attachForm=[(b1, 'top',150),(b1, 'left',150)])
cmds.showWindow( pkWindow )

 

Error message is always "line 15: name 'pkForm' is not defined'

 

What am I supposed to do?

Tags (2)
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums