그때 나는 내 자신의 질문을 답변 해 드리겠습니다 : 반복하려면
을 뷰포트 나는 그게 당신처럼 나에게 많은 도움이 희망
# import python maya commands
import maya.cmds as cmds
# Create a list of ALL viewports
viewports = cmds.getPanel(all = True)
# Get the current viewport
vp = cmds.getPanel(withFocus = True) # current viewport
current = cmds.modelEditor(vp, q = True, nurbsCurves = True)
for view in viewports:
if 'modelPanel' in view:
# check to see if the item in lists is a viewport
# is one of the model panels.
# The list is quite big and we only need up to four
print view # prints the current viewport
#Swap the NURBS visibility around
cmds.modelEditor(view, edit = True, nurbsCurves = not(current))
을 통해. 예. 감사합니다.