本文整理汇总了Python中maya.cmds.intField函数的典型用法代码示例。如果您正苦于以下问题:Python intField函数的具体用法?Python intField怎么用?Python intField使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了intField函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: rotGeo
def rotGeo():
transx = cmds.intField("gTransX", q=True, value=True)
transy = cmds.intField("gTransY", q=True, value=True)
transz = cmds.intField("gTransZ", q=True, value=True)
cmds.rotate( transx,transy,transz )
开发者ID:mfossett,项目名称:PythonScripts,代码行数:7,代码来源:Modeling_Toolset_v2.py
示例2: moveGeo
def moveGeo():
transx = cmds.intField("gTransX", q=True, value=True)
transy = cmds.intField("gTransY", q=True, value=True)
transz = cmds.intField("gTransZ", q=True, value=True)
cmds.move( transx,transy,transz )
开发者ID:mfossett,项目名称:PythonScripts,代码行数:7,代码来源:Modeling_Toolset_v2.py
示例3: myLattice
def myLattice():
valX = cmds.intField("lValX", q=True, value=True)
valY = cmds.intField("lValY", q=True, value=True)
valZ = cmds.intField("lValZ", q=True, value=True)
cmds.lattice( dv=(valX,valY,valZ) )
开发者ID:mfossett,项目名称:PythonScripts,代码行数:7,代码来源:Modeling_Toolset_v2.py
示例4: runFlakeGen
def runFlakeGen(self,state):
'''
Executes the code to generate snowflakes and starts the progress window using the variables defined in snowflakeUI.flakeGenUI and starts the progress window
'''
cmds.progressWindow(title='SnowFX',
progress=0,
status='Starting up...')
try:
particles=makeSnowflakes.makeSnowflakes(cmds.intField(self.flakeNumber,v=1,q=1),
cmds.floatField(self.flakeRadius,v=1,q=1),
cmds.intField(self.flakeRadiusVar,v=1,q=1),
cmds.canvas(self.colour1,rgb=1,q=1),
cmds.canvas(self.colour2,rgb=1,q=1),
cmds.floatField(self.transparency,v=1,q=1),
cmds.floatField(self.glow,v=1,q=1))
for i in range(0,len(particles)):
cmds.move(0,0,cmds.floatField(self.flakeRadius,v=1,q=1)*2*i,particles[i])
group = cmds.group(em=1,n='snowFX')
for x in particles:
cmds.parent(x,group)
cmds.progressWindow(ep=1)
except Exception, err:
sys.stderr.write('ERROR: %s\n' % str(err))
cmds.progressWindow(ep=1)
errorPopup('Something went wrong :( \n Check the script editor for detials')
开发者ID:philrouse,项目名称:snowFX,代码行数:25,代码来源:snowflakeGUI.py
示例5: prefPut
def prefPut(self):
cmds.checkBox(self.c2, e=True, v=self.prefs['BkRmvCon'])
cmds.checkBox(self.c3, e=True, v=self.prefs['BkTmRng'])
cmds.checkBox(self.c4, e=True, v=self.prefs['BkAllFrms'])
cmds.checkBox(self.c7, e=True, v=self.prefs['LocTrns'])
cmds.checkBox(self.c8, e=True, v=self.prefs['LocRot'])
cmds.checkBox(self.c12, e=True, v=self.prefs['LocAllFrms'])
cmds.checkBox(self.c17, e=True, v=self.prefs['PrntRgPosOnly'])
cmds.checkBox(self.c15, e=True, v=self.prefs['AimRgNegAim'])
cmds.radioButtonGrp(self.aimGrp, e=True, select=self.prefs['AimRgAim'])
cmds.checkBox(self.c16, e=True, v=self.prefs['AimRgNegUp'])
cmds.radioButtonGrp(self.upGrp, e=True, select=self.prefs['AimRgUp'])
cmds.checkBox(self.c18, e=True, v=self.prefs['PvtRgNegAim'])
cmds.radioButtonGrp(self.aimPivotGrp, e=True, select=self.prefs['PvtRgAim'])
cmds.checkBox(self.c19, e=True, v=self.prefs['PvtRgNegUp'])
cmds.radioButtonGrp(self.upPivotGrp, e=True, select=self.prefs['PvtRgUp'])
cmds.checkBox(self.c21, e=True, v=self.prefs['PvtRgMstr'])
cmds.radioButtonGrp(self.masterGrp, e=True, select=self.prefs['PvtRgMstrSl'])
cmds.radioButtonGrp(self.masterGrp, e=True, en=self.prefs['PvtRgMstrEnbl'])
cmds.checkBox(self.c22, e=True, v=self.prefs['PvtRgAutoDstnc'])
cmds.floatSliderGrp(self.sl1, e=True, v=self.prefs['PvtRgDstnc'])
cmds.floatSliderGrp(self.sl1, e=True, en=self.prefs['PvtRgDstncEnbl'])
cmds.checkBox(self.c21, e=True, v=self.prefs['LcAllFrms'])
cmds.checkBox(self.c5, e=True, v=self.prefs['PlcCon'])
cmds.radioButtonGrp(self.conGrp, e=True, select=self.prefs['PlcConTo'])
cmds.radioButtonGrp(self.conGrp, e=True, en=self.prefs['PlcConToEnbl'])
cmds.checkBox(self.c13, e=True, v=self.prefs['PlcMtchKys'])
cmds.checkBox(self.c9, e=True, v=self.prefs['ConOffst'])
cmds.checkBox(self.c10, e=True, v=self.prefs['ConTrns'])
cmds.checkBox(self.c11, e=True, v=self.prefs['ConRot'])
cmds.intField(self.actionField1, e=True, v=self.prefs['DstKys'])
cmds.checkBox(self.c14, e=True, v=self.prefs['DstKysDstrct'])
cmds.floatFieldGrp(self.floatGroup1, e=True, v=self.prefs['ObjctSpaceOffst'])
开发者ID:boochos,项目名称:work,代码行数:33,代码来源:constraintUI_micro_lib.py
示例6: findSpeeds
def findSpeeds(arg):
frameRates = {"game": 15, "film": 24, "pal": 25, "ntsc": 30, "show": 48, "palf": 50, "ntscf": 60}
first_user_frame = cmds.intField(window_UI["first_frame"], query=True, value=True)
last_user_frame = cmds.intField(window_UI["last_frame"], query=True, value=True)
start_frame = cmds.playbackOptions(query=True, minTime=True)
end_frame = cmds.playbackOptions(query=True, maxTime=True)
if first_user_frame < start_frame or last_user_frame > end_frame:
return
current_frame = first_user_frame
fps = frameRates[cmds.currentUnit(query=True, time=True)]
timeInterval = 1.0 / fps
selectedObjects = cmds.ls(selection=True)
attr = "speed"
addAttributeToObjects(selectedObjects, attr)
prevPos = []
for obj in selectedObjects:
prevPos.append(cmds.getAttr(obj + ".translate")[0])
while current_frame < last_user_frame:
current_frame += 1
for k in xrange(0, len(selectedObjects)):
obj = selectedObjects[k]
currentPos = cmds.getAttr(obj + ".translate", time=current_frame)[0]
speed = getSpeed(prevPos[k], currentPos, timeInterval)
cmds.setKeyframe(obj, at="speed", v=speed, t=current_frame)
prevPos[k] = currentPos
开发者ID:juansc,项目名称:maya_speedometer,代码行数:35,代码来源:speedometer.py
示例7: UI
def UI():
if cmds.window("TressFXExporterUI", exists = True):
cmds.deleteUI("TressFXExporterUI")
windowTitle = 'TressFX Exporter' + ' ' + 'v' + tressfx_exporter_version
window = cmds.window("TressFXExporterUI", title = windowTitle, w=280, h = 260, mnb=False, sizeable=False)
mainLayout = cmds.columnLayout(w=280, h=260)
cmds.separator(h=8, style='in')
cmds.text(label='Number of vertices per strand (4, 8, 16, 32 or 64):', align='left')
cmds.intField("numVerticesPerStrand", w=30, minValue=4, maxValue=64, value=16 )
cmds.separator(h=8, style='in')
cmds.checkBox("bothEndsImmovable", label='Both ends immovable')
cmds.checkBox("InvertZ", label='Invert Z', value = True)
cmds.checkBox("exportSkinCheckBox", label='Export skin data', value = False)
cmds.checkBox("randomStrandCheckBox", label='Randomize strands for LOD', value = True)
cmds.separator(h=15)
cmds.button(label="Set the base mesh", w=170, h=30, command=SetBaseMesh)
cmds.textField("MeshNameLabel", w=170, editable=False)
cmds.separator(height=10, style='none')
cmds.button(label="Export as binary (*.tfx)", w=170, h=30, command=ExportBinary)
cmds.separator(h=15)
version_text = 'v' + tressfx_exporter_version
cmds.text(label=version_text, align='left')
global selected_mesh_shape_name
selected_mesh_shape_name = ''
cmds.showWindow(window)
开发者ID:GPUOpen-Effects,项目名称:TressFX,代码行数:34,代码来源:TressFX_Exporter.py
示例8: updateFirstJoint
def updateFirstJoint( self ):
lastJnt = cmds.listRelatives( cmds.ls( sl=1 ), c=1, ad=1, f=1 )[0]
cmds.textField( WinA_Global.txf_endJoint, e=1, tx=cmds.ls( lastJnt )[0] )
cmds.intField( WinA_Global.num_original, e=1, v=1 )
self.cmdSetEditMode()
self.conditionControl( 'edit' )
开发者ID:jonntd,项目名称:mayadev-1,代码行数:7,代码来源:sgPWindow_set_joint.py
示例9: fieldsGUI
def fieldsGUI(curParent):
frm = cmds.formLayout( parent=curParent)
# Row 1 labels
txt1 = cmds.text(label="fileName", w=200)
txt2 = cmds.text(label="##", w=60)
txt3 = cmds.text(label="Pad", w=40)
# Row 2 Fields
global mainName, counter, pad, copyChk
mainName = cmds.textField( w=200 )
counter = cmds.intField( w=60, v=1 )
pad = cmds.intField( w=40, v=3 )
# Row 3 Buttons
btn1 = cmds.button(label="Next", w=200, c=Callback(process))
# copyChk = cmds.checkBox( label="move", v=1,
# Positioning GUI elements
cmds.formLayout(frm, e=1, af=[])
cmds.formLayout(frm, e=1, ac=[])
# Row1
cmds.formLayout(frm, e=1, af=[[txt1, "left", 0],[txt1, "top", 0]])
cmds.formLayout(frm, e=1, af=[txt2, "top", 0], ac=[txt2, "left", 0, txt1])
cmds.formLayout(frm, e=1, af=[txt3, "top", 0], ac=[txt3, "left", 0, txt2])
# Row 2
cmds.formLayout(frm, e=1, af=[mainName, "left", 0],ac=[mainName, "top", 0, txt1])
cmds.formLayout(frm, e=1, ac=[[counter, "left", 0, mainName],[counter, "top", 0, txt1]])
cmds.formLayout(frm, e=1, ac=[[pad, "left", 0, counter],[pad, "top", 0, txt1]])
# Row 3
cmds.formLayout(frm, e=1, af=[btn1, "left", 0],ac=[btn1, "top", 0, mainName])
return frm
开发者ID:creuter23,项目名称:fs-tech-artist,代码行数:35,代码来源:fileSeq.py
示例10: setEditMode
def setEditMode(self, topJoint, endJoint, curveEdit=True ):
self.dragOn = False
endJoint = cmds.ls( endJoint, l=1 )[0]
jntChildren = cmds.listRelatives( topJoint, c=1, ad=1, f=1 )
jntChildren.append( topJoint )
jntChildren.reverse()
if not endJoint in jntChildren:
cmds.frameLayout( WinA_Global.frame, e=1, en=0 )
cmds.floatSliderGrp( WinA_Global.slider_joint, e=1, v=0 )
return False
index = jntChildren.index( endJoint )
self.jntH = jntChildren[:index+1]
self.numPoints = len( self.jntH )
cmds.intField( WinA_Global.num_original, e=1, v=self.numPoints )
cmds.floatSliderGrp( WinA_Global.slider_joint, e=1, v=0 )
self.editCurveByPosition()
self.setGlobalValue( self.getGlobalValue() )
return True
开发者ID:jonntd,项目名称:mayadev-1,代码行数:25,代码来源:sgPWindow_set_joint.py
示例11: gui
def gui():
if (cmds.window('dk_pipe_gui_001', ex=True)):
cmds.deleteUI('dk_pipe_gui_001')
# This clears any window preferences on our GUI
if (cmds.windowPref('dk_pipe_gui_001', ex=True)):
cmds.windowPref('dk_pipe_gui_001', r=True)
cmds.window('dk_pipe_gui_001', t="Build Pipes")
cmds.columnLayout('MAIN')
cmds.rowColumnLayout(nc=2)
cmds.iconTextStaticLabel(st='textOnly', l='No. Pipes')
cmds.intField('n_pipes_int', w=150, min=1, max=20, v=8)
cmds.iconTextStaticLabel(st='textOnly', l='Min Pipe Size')
cmds.floatSlider('min_pipe_size_int', min=1, max=4, value=1, step=1)
cmds.iconTextStaticLabel(st='textOnly', l='Max Pipe Size')
cmds.floatSlider('max_pipe_size_int', min=1, max=4, value=1, step=1)
cmds.iconTextStaticLabel(st='textOnly', l='Art Radius')
cmds.intField('main_radius_int', value=3)
cmds.button(w=150, l='Create Pipes', c=handle_input)
cmds.setParent('MAIN')
cmds.columnLayout('SECOND')
cmds.button(w=300, l='Delete History (All)', c=handle_delete_button)
cmds.showWindow('dk_pipe_gui_001')
开发者ID:KairiNabai,项目名称:digikinesis,代码行数:30,代码来源:pipes.py
示例12: getRenderSettings
def getRenderSettings(self):
#get render settings
frCheck = cmds.menuItem(self._rs_mm_range, q=True, cb=True)
padCheck = cmds.menuItem(self._rs_mm_pad, q=True, cb=True)
resCheck = cmds.menuItem(self._rs_mm_res, q=True, cb=True)
fncCheck = cmds.menuItem(self._rs_mm_fnc, q=True, cb=True)
ofCheck = cmds.menuItem(self._rs_mm_of, q=True, cb=True)
rCheck = cmds.menuItem(self._rs_mm_r, q=True, cb=True)
pdCheck = cmds.menuItem(self._rs_mm_pd, q=True, cb=True)
rdCheck = cmds.menuItem(self._rs_mm_rd, q=True, cb=True)
fr, pad, res, fnc, of, r, pd, rd = None, None, None, None, None, None, None, None
renderers = ['default', 'rman', 'sw', 'mr']
if frCheck:
fr = [cmds.intField(self._rs_start, q=True, v=True), cmds.intField(self._rs_end, q=True, v=True)]
if padCheck:
pad = cmds.intField(self._rs_pad, q=True, v=True)
if resCheck:
res = [cmds.intField(self._rs_resW, q=True, v=True), cmds.intField(self._rs_resH, q=True, v=True)]
if fncCheck:
fnc = cmds.optionMenu(self._rs_fncOpt, q=True, v=True)
if ofCheck:
of = cmds.optionMenu(self._rs_ofOpt, q=True, v=True)
if rCheck:
r = renderers[cmds.optionMenu(self._rs_rOpt, q=True, sl=True)]
if pdCheck:
pd = cmds.textField(self._rs_pdField, q=True, tx=True)
if rdCheck:
rd = cmds.textField(self._rs_rdField, q=True, tx=True)
return {'range':fr, 'pad':pad, 'res':res, 'fnc':fnc, 'of':of, 'r':r, 'pd':pd, 'rd':rd}
开发者ID:GuidoPollini,项目名称:MuTools,代码行数:30,代码来源:boBatchFileMaker.py
示例13: export
def export( *args ):
import sgBFunction_fileAndPath
import sgBFunction_dag
exportPath = cmds.textField( WinA_Global.txf_export, q=1, tx=1 )
minFrame = cmds.intField( WinA_Global.fld_startFrame, q=1, v=1 )
maxFrame = cmds.intField( WinA_Global.fld_endFrame, q=1, v=1 )
exportPath = exportPath.replace( '\\', '/' )
folderPath = '/'.join( exportPath.split( '/' )[-1:] )
sgBFunction_fileAndPath.makeFolder( folderPath )
sels = cmds.ls( sl=1 )
cams = []
for sel in sels:
selShape = sgBFunction_dag.getShape( sel )
if cmds.nodeType( selShape ) == 'camera':
cams.append( sel )
import sgBFunction_scene
sgBFunction_scene.doBake( exportPath, minFrame, maxFrame )
WinA_Cmd.write_windowInfo()
开发者ID:jonntd,项目名称:mayadev-1,代码行数:25,代码来源:sgPWindow_file_camera_export.py
示例14: createUI
def createUI (pWindowTitle, pApplyCallback):
windowID = 'MyWindowID'
if cmds.window(windowID, exists=True):
cmds.deleteUI(windowID)
cmds.window(windowID, title=pWindowTitle, sizeable=False, resizeToFitChildren=True)
cmds.rowColumnLayout(numberOfColumns=3, columnWidth=[(1,75),(2,60),(3,60)], columnOffset=[(1,'right',3)])
cmds.text(label='Time Range:')
startTimeField = cmds.intField()
endTimeField = cmds.intField()
cmds.text(label='Attribute:')
targetAttributeField = cmds.textField()
cmds.separator(h=10, style='none')
cmds.separator(h=10, style='none')
cmds.separator(h=10, style='none')
cmds.separator(h=10, style='none')
cmds.separator(h=10, style='none')
cmds.button(label='Apply', command=pApplyCallback)
def cancelCallback(*pArgs):
if cmds.window(windowID, exists=True):
cmds.deleteUI(windowID)
cmds.button(label='Cancel', command=cancelCallback)
cmds.showWindow()
开发者ID:Kif11,项目名称:maya_tools,代码行数:34,代码来源:simple_ui.py
示例15: renameGui
def renameGui(parent):
renCol = cmds.columnLayout()
colWidth = winWidth/4
cmds.rowColumnLayout(nc=4, cw=[[1,colWidth],[2,colWidth+40],[3,colWidth-40],[4,colWidth]],
co=[[1,"both",3],[2,"both",3],[3,"both", 3],[4,"both",3]])
cmds.text( label="Prefix", al="center" )
cmds.text( label="Name", al="center" )
cmds.text( label="###", al="center" )
cmds.text( label="Suffix", al="center" )
cmds.textField( "mecRenPre" )
cmds.textField( "mecRenName" )
cmds.intField( "mecRenCount" )
cmds.textField( "mecRenSuf" )
cmds.setParent(renCol)
cmds.rowColumnLayout( nc=3, cw=[[1,winWidth/3-20],[2,winWidth/3+40],[3,winWidth/3-20]],
co=[[1,"both",3],[3,"both",3]])
cmds.button(label="Prefix",
c=Callback(prefix))
cmds.button(label="Full Rename",
c=Callback(fullRename))
cmds.button(label="Suffix",
c=Callback(suffix))
cmds.setParent( parent )
开发者ID:creuter23,项目名称:fs-tech-artist,代码行数:25,代码来源:mecRenameTools.py
示例16: doubleCheckIntFieldWidget
def doubleCheckIntFieldWidget(self, myLabel, flag):
self.tempLayout = mc.rowLayout(nc=4, h=self.widgetHeight, p=self.form)
myCheckBox = mc.checkBox('%sCheckBox' % myLabel, l='', ann=flag, w=self.checkBoxLenght, cc=Callback(self.activateWidget, '%sIntFieldX' % myLabel, '%sIntFieldY' % myLabel), p=self.tempLayout)
mc.text('%sText' % myLabel, l=' '.join(myLabel.split('_')), w=150, align='left', p=self.tempLayout)
mc.intField('%sIntFieldX' % myLabel, p=self.tempLayout, enable=False, w=self.fieldLenght/2)
mc.intField('%sIntFieldY' % myLabel, p=self.tempLayout, enable=False, w=self.fieldLenght/2)
self.doubleIntCheckBoxes.append(myLabel)
开发者ID:mkolar,项目名称:Tapp,代码行数:7,代码来源:nMakeTx.py
示例17: buildGhostAnimation
def buildGhostAnimation(*args):
obj = 'ghost_body1'
# get animation start and end points from ui controls
animation_start = cmds.intField('animation_start', query=True, value=True)
animation_end = cmds.intField('animation_end', query=True, value=True)
for current_time in range(animation_start, animation_end + 1):
cmds.currentTime(current_time, edit=True)
locatorPos = cmds.xform('character_locator', q=1, t=True)
x = round(locatorPos[0], 2)
z = round(locatorPos[2], 2)
if x % 1 == 0.25 or z % 1 == 0.25:
cmds.xform(obj, rotation = [0, 11.25, 0])
elif x % 1 == 0.5 or z % 1 == 0.5:
cmds.xform(obj, rotation = [0, 22.5, 0])
elif x % 1 == 0.75 or z % 1 == 0.75:
cmds.xform(obj, rotation = [0, 33.75, 0])
elif x % 1 == 0 or z % 1 == 0:
cmds.xform(obj, rotation = [0, 0, 0])
else:
assert False, "Unhandled character position"
cmds.setKeyframe([obj])
开发者ID:andy-walker,项目名称:pacman-3d,代码行数:28,代码来源:pacTools.py
示例18: create
def create( *args ):
controllerName = cmds.textField( Win_Global.textField, q=1, tx=1 )
checked = cmds.checkBox( Win_Global.checkBox, q=1, v=1 )
colorIndex1 = cmds.intField( Win_Global.intField1, q=1, v=1 )
colorIndex2 = cmds.intField( Win_Global.intField2, q=1, v=1 )
controllerSize = cmds.floatField( Win_Global.floatField, q=1, v=1 )
topJoints = pymel.core.ls( sl=1 )
for i in range( len( topJoints ) ):
topJoint = topJoints[i]
ctls, pinCtls = sgCmds.createFkControl( topJoint, controllerSize, checked )
for j in range( len( ctls ) ):
ctl = ctls[j]
pinCtl = pinCtls[j]
ctl.getShape().overrideEnabled.set( 1 )
ctl.getShape().overrideColor.set( colorIndex1 )
if pinCtl:
pinCtl.getShape().overrideEnabled.set( 1 )
pinCtl.getShape().overrideColor.set( colorIndex2 )
if controllerName:
if len( topJoints ) == 1:
cuName = controllerName + '_%d' %( j )
else:
cuName = controllerName + '_%d_%d' %( i, j )
ctl.rename( cuName )
ctl.getParent().rename( 'P' + cuName )
if pinCtl:
pinCtl.rename( cuName + '_Move' )
pinCtl.getParent().rename( 'P' + pinCtl.name() )
开发者ID:jonntd,项目名称:mayadev-1,代码行数:32,代码来源:createLineController.py
示例19: swarmfunc
def swarmfunc(x, y, z, n, objectList, *args): #simply for parsing arguments and passing to the swarm function!
shape = cmds.optionMenu( objectList, query = True, value = True)
n=cmds.intField( n, query=True, value=True )
x=cmds.intField( x, query=True, value=True )
y=cmds.intField( y, query=True, value=True )
z=cmds.intField( z, query=True, value=True )
#this will call the swarm function
print ('Calling swarm function with the following params:-')
print ('No. of particles: %s' % n)
print ('Dimensions(x, y, z): (%s, %s, %s)' % (x, y, z))
#print n
s=1
if shape=='Cube':
s=1
elif shape=='Sphere':
s=2
elif shape=='Cylinder':
s=3
elif shape=='Cone':
s=4
elif shape=='Torus':
s=5
print ('Shape: %s\nCorresponding value: %s \n' % (shape, s))
cmds.swarm(np=n, dim=(x, y, z), sv=s)
开发者ID:sid2364,项目名称:Maya_Python,代码行数:25,代码来源:swarmCommand_shelfScript_SID.py
示例20: export
def export( *args ):
import sgBExcute_data
import sgBFunction_fileAndPath
WinA_Cmd.write_windowInfo()
path = cmds.textField( WinA_Global.exportPath_txf, q=1, tx=1 )
if not os.path.exists( path ):
try:
sgBFunction_fileAndPath.makeFolder( path )
except:
cmds.error( '"%s" is not exist path' % path )
return None
if not os.path.isdir( path ):
cmds.error( '"%s" is not Directory' % path )
return None
path = cmds.textField( WinA_Global.exportPath_txf, q=1, tx=1 )
startFrame = cmds.intField( WinA_Global.fld_startFrame, q=1, v=1 )
endFrame = cmds.intField( WinA_Global.fld_endFrame, q=1, v=1 )
exportTargets = sgBFunction_selection.getDeformedMeshObjectsFromGroup( WinA_Cmd.getExportTargets() )
cacheTypeIndex = cmds.optionMenu( WinA_Global.om_cacheType, q=1, sl=1 )-1
pointsSpaceIndex = cmds.optionMenu( WinA_Global.om_pointsSpace, q=1, sl=1 )-1
cacheType = ['mcc', 'mcx']
pointSpace = [ 'world', 'local' ]
if not exportTargets:
cmds.error( 'Target is not exists' )
else:
sgBExcute_data.exportCacheData( exportTargets, startFrame, endFrame, path, cacheType[cacheTypeIndex], pointSpace[pointsSpaceIndex] )
开发者ID:jonntd,项目名称:mayadev-1,代码行数:33,代码来源:sgPWindow_data_cache_export.py
注:本文中的maya.cmds.intField函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论