playblast용 스크립트를 짜다가
버튼에서
cmds.button( l='simple', w=width03, bgc=[ 0.32, 0.05, 0.4 ], c='hwan_makeCam.button_simpleVer()' )
이 구문이 계속해서 에러가 나는데
# File read in 0 seconds. #
# Error: name 'hwan_makeCam' is not defined
# Traceback (most recent call last):
# File "<maya console>", line 1, in <module>
# NameError: name 'hwan_makeCam' is not defined #
이런식으로
cmds.button( l='simple', w=width03, bgc=[ 0.32, 0.05, 0.4 ], c=lambda x:hwan_makeCam.button_simpleVer() )
digital dream 카페에서 알려준데로 요런식으로 바꿔주면 작동을 한다
아직까지 lamda 저놈의 저기서 어떤 역할을 한건진 잘 모르겠다.. 우선 패스...