N¬n‡r¥ªíÂ)emçhÂyhi×¢w^™©Ý
#Vray hidden line wireframe shader auto setup v1.0 - andrew.palmer3d@gmail.com 2012 import pymel.core as pm #Create all the nodes we need for the network #Shader Nodes WFS = pm.shadingNode ('surfaceShader', asShader=True, n = 'AJ_HL_WireFrame') VET = pm.shadingNode ('VRayEdges', asTexture=True, n = 'Vray_Wireframe_tex') pm.connectAttr (VET + '.outColor', WFS + '.outColor') #Projection Nodes PROJ = pm.shadingNode ('projection', asTexture=True, n = 'imageplane_passthrough') PFILE = pm.shadingNode ('file', asTexture=True, n = 'ip_link') PTEX = pm.shadingNode ('place3dTexture', asUtility=True, n = '3D_tex_cam') PFILE2D = pm.shadingNode ('place2dTexture', asUtility=True, n = 'PFILE_2D') #connect up all the projection nodes with the image plane link pm.connectAttr (PFILE + '.outColor', PROJ + '.image') pm.connectAttr (PTEX + '.worldInverseMatrix', PROJ + '.placementMatrix') pm.connectAttr (PFILE2D + '.uvCoord', PFILE + '.uvCoord') pm.connectAttr ('imagePlane1.imageName', PFILE + '.fileTextureName') pm.connectAttr (PROJ + '.outColor', VET + '.backgroundColor') #set attributes for projection and render pm.setAttr (PROJ + '.projType', 8) pm.setAttr (PROJ + '.fitType', 2) pm.setAttr (PFILE + '.useFrameExtension', 1)