heatfasad.blogg.se

Maya python ls selection
Maya python ls selection







maya python ls selection

MySelectionShapes = cmds.listRelatives(mySelection, s=True) #parator( height=6, style='none' )Ĭmds.text(label='If send textures on, pick channel to be sent to Mari as colour\nMust be Mari-compatible format (512, 1024, etc) or they won\'t load:')Ĭmds.columnLayout("shaderPresetLayoutMari", rs=1, adjustableColumn=False) #parator( height=4, style='none' )Ĭmds.checkBox("mariMeBoxCheckbox1", label='Smooth mesh before send', cc='cmds.checkBox("mariMeBoxCheckbox3", e=True, v=False)\ncmds.checkBox("mariMeBoxCheckbox2", e=True, v=True)', value=False )Ĭmds.checkBox("mariMeBoxCheckbox2", label='Smooth UVs', value=False )Ĭmds.intSliderGrp("mariMeSlider1", field=True, label='Smooth value', minValue=1, maxValue=6, fieldMinValue=1, fieldMaxValue=6, value=2 )Ĭmds.checkBox("mariMeBoxCheckbox3", cc='cmds.checkBox("mariMeBoxCheckbox1", e=True, v=False)', label='Send tesselated and displaced mesh', value=False )Ĭmds.rowColumnLayout( numberOfColumns=5, columnWidth=)Ĭmds.checkBox("mariMeBoxCheckbox4", cc=textureEnabler, label='Send texture from mesh', value=False )Ĭmds.checkBox("mariMeBoxCheckbo圆", cc="cmds.checkBox('mariMeBoxCheckbox8', e=1, v=0)\ncmds.checkBox('mariMeBoxCheckbox7', e=1, v=0)", label='8', en=1, value=False )Ĭmds.checkBox("mariMeBoxCheckbox7", cc="cmds.checkBox('mariMeBoxCheckbo圆', e=1, v=0)\ncmds.checkBox('mariMeBoxCheckbox8', e=1, v=0)", label='16', en=1, value=True )Ĭmds.checkBox("mariMeBoxCheckbox8", cc="cmds.checkBox('mariMeBoxCheckbox7', e=1, v=0)\ncmds.checkBox('mariMeBoxCheckbo圆', e=1, v=0)", label='32', en=1, value=False )Ĭmds.checkBox("mariMeBoxCheckbox9", ann='created channels are created as scalar, not gamma-corrected sRGB', label='New channels are scalar', en=1, value=False )Ĭmds.checkBox("mariMeBoxCheckbox10", ann='Send the associated tiles for the selected file node.', label='send UDIM files', en=0, value=False ) #cmds.button(w=40, h=18, label="Settings", command='import l as mel\nmel.eval("unifiedRenderGlobalsWindow")')Ĭmds.text(label='Single smooth mesh options:') MariMewindow = cmds.window('mariMewindow', widthHeight=(400, 320), menuBar=True, title="Mari Me", rtf=1)Ĭmds.columnLayout(adjustableColumn=True, columnAttach=('both', 10), rowSpacing=5)Ĭmds.text(label='MAKE SURE TO ENABLE MARI COMMAND PORT 6100\nAND SENT MESHES AREN\'T USING MAYA LAMBERTS')Ĭmds.rowColumnLayout( numberOfColumns=4, columnWidth= )Ĭmds.textField("mariTextField", width=90, text='scene')Ĭmds.textField("mariChannelText", width=int(windowWidth), text="color")Ĭmds.separator( height=1, style='single' )Ĭmds.rowColumnLayout( numberOfColumns=2, columnWidth= )Ĭmds.checkBox("mariMeBoxCheckbox12", label='Alembic animated mesh export (time slider range)', value=False ) If cmds.window('mariMewindow', query=True,exists=True):Ĭmds.deleteUI('mariMewindow',window=True) Testers = uginInfo( 'objExport', query=True, loaded=True ) TestersABC = uginInfo( 'objExport', query=True, loaded=True )

maya python ls selection

MySelection = re.sub('', '', str(testSel))ĬommandportStatus = mandPort(":7100", q=1)

#Maya python ls selection license#

Source File: mariMe.py View license def mariMe(*args): Surfshade = cmds.shadingNode('surfaceShader', asShader=1)Ĭmds.connectAttr(fileNode + '.outColor', surfshade + '.outColor', f=1 )Įlif typeTest = "surfaceShader":#restore the global variable matĬmds.hyperShade(assign=storedMaterialmari) Material = cmds.listConnections(shadingGroup + ".surfaceShader")įileNode = cmds.listConnections(material + "." + channelNameSplit) ShadingGroup = cmds.listSets(type=1,o=mySelectionShapes)

maya python ls selection

TextureNameUnfiltered = cmds.optionMenuGrp("textureSelect", q=1, v=1 )ĬhannelNameSplit = textureNameUnfiltered.split() MySelectionShapes = cmds.listRelatives(s=1) Source File: mariMe.py View license def doTextureAsDiffuseMariPy(*args):









Maya python ls selection