-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest_normal.mel
41 lines (40 loc) · 2.45 KB
/
test_normal.mel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
polySphere -r 1 -sx 20 -sy 20 -ax 0 1 0 -cuv 2 -ch 1;
shadingNode -asShader aiLambertNode;
shadingNode -asShader aiLayerMatNode;
sets -renderable true -noSurfaceShader true -empty -name aiLambertNode1SG;
defaultNavigation -connectToExisting -source aiLambertNode1 -destination aiLambertNode1SG;
defaultNavigation -source aiLambertNode1 -destination |pSphere1|pSphereShape1.instObjGroups[0] -connectToExisting;
connectAttr -f aiLambertNode1.outColor aiLambertNode1SG.surfaceShader;
connectAttr -f aiLambertNode1.outColor initialShadingGroup.surfaceShader;
shadingNode -asLight aiAreaLight;
setAttr "transform1.translateZ" 3;
setAttr "aiAreaLight1.intensity" 10;
setAttr "aiAreaLight1.exposure" 2;
shadingNode -asUtility aiNormalMap;
defaultNavigation -createNew -destination "aiNormalMap1.input";
createRenderNode -allWithTexturesUp "defaultNavigation -force true -connectToExisting -source %node -destination aiNormalMap1.input" "";
defaultNavigation -defaultTraversal -destination "aiNormalMap1.input";
shadingNode -asTexture -isColorManaged file;
shadingNode -asUtility place2dTexture;
connectAttr -f place2dTexture1.coverage file1.coverage;
connectAttr -f place2dTexture1.translateFrame file1.translateFrame;
connectAttr -f place2dTexture1.rotateFrame file1.rotateFrame;
connectAttr -f place2dTexture1.mirrorU file1.mirrorU;
connectAttr -f place2dTexture1.mirrorV file1.mirrorV;
connectAttr -f place2dTexture1.stagger file1.stagger;
connectAttr -f place2dTexture1.wrapU file1.wrapU;
connectAttr -f place2dTexture1.wrapV file1.wrapV;
connectAttr -f place2dTexture1.repeatUV file1.repeatUV;
connectAttr -f place2dTexture1.offset file1.offset;
connectAttr -f place2dTexture1.rotateUV file1.rotateUV;
connectAttr -f place2dTexture1.noiseUV file1.noiseUV;
connectAttr -f place2dTexture1.vertexUvOne file1.vertexUvOne;
connectAttr -f place2dTexture1.vertexUvTwo file1.vertexUvTwo;
connectAttr -f place2dTexture1.vertexUvThree file1.vertexUvThree;
connectAttr -f place2dTexture1.vertexCameraOne file1.vertexCameraOne;
connectAttr place2dTexture1.outUV file1.uv;
connectAttr place2dTexture1.outUvFilterSize file1.uvFilterSize;
defaultNavigation -force true -connectToExisting -source file1 -destination aiNormalMap1.input; window -e -vis false createRenderNodeWindow;
connectAttr -force file1.outColor aiNormalMap1.input;
setAttr -type "string" file1.fileTextureName "D:/Program Files/Autodesk/Maya2023/presets/HLSL11/examples/SeaNormalMap.tx";
connectAttr -f aiNormalMap1.outValue aiLambertNode1.normalCamera;