-
Notifications
You must be signed in to change notification settings - Fork 4
/
MtoA_Material_ID_RenderSetup.json
177 lines (177 loc) · 7.34 KB
/
MtoA_Material_ID_RenderSetup.json
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
[
{
"renderSetupLayer": {
"collections": [
{
"renderSettingsCollection": {
"children": [
{
"absUniqueOverride": {
"attrValue": {
"connectable": true,
"type": "String",
"value": "name_material_id"
},
"attribute": "imageFilePrefix",
"localRender": false,
"name": "imageFilePrefix",
"selfEnabled": true,
"targetNodeName": "defaultRenderGlobals"
}
}
],
"expandedState": false,
"isolateSelected": false,
"name": "RenderSettingsCollection",
"selector": {
"simpleSelector": {
"customFilterValue": "",
"pattern": "",
"previousPattern": "",
"staticSelection": "defaultRenderQuality\ndefaultArnoldRenderOptions\ndefaultRenderGlobals\ndefaultArnoldDriver\ndefaultResolution\ndefaultArnoldFilter",
"typeFilter": 0
}
},
"selfEnabled": true
}
},
{
"collection": {
"children": [
{
"collection": {
"children": [
{
"shaderOverride": {
"attribute": "",
"connectionStr": "aiUtility_BLACK.outColor",
"localRender": false,
"name": "shaderOverride2",
"selfEnabled": true
}
}
],
"expandedState": false,
"isolateSelected": false,
"name": "BLACK_Turn_Off_to_see_ShadingGroups",
"selector": {
"simpleSelector": {
"customFilterValue": "",
"pattern": "*",
"previousPattern": "*",
"staticSelection": "",
"typeFilter": 11
}
},
"selfEnabled": false
}
},
{
"collection": {
"children": [
{
"shaderOverride": {
"attribute": "",
"connectionStr": "aiUtility_GREEN.outColor",
"localRender": false,
"name": "shaderOverride4",
"selfEnabled": true
}
}
],
"expandedState": false,
"isolateSelected": false,
"labelColor": "Green",
"name": "GREEN",
"selector": {
"simpleSelector": {
"customFilterValue": "",
"pattern": "",
"previousPattern": "",
"staticSelection": "",
"typeFilter": 11
}
},
"selfEnabled": true
}
},
{
"collection": {
"children": [
{
"shaderOverride": {
"attribute": "",
"connectionStr": "aiUtility_RED.outColor",
"localRender": false,
"name": "shaderOverride1",
"selfEnabled": true
}
}
],
"expandedState": false,
"isolateSelected": false,
"labelColor": "Red",
"name": "RED",
"selector": {
"simpleSelector": {
"customFilterValue": "",
"pattern": "",
"previousPattern": "",
"staticSelection": "",
"typeFilter": 11
}
},
"selfEnabled": true
}
},
{
"collection": {
"children": [
{
"shaderOverride": {
"attribute": "",
"connectionStr": "aiUtility_BLUE.outColor",
"localRender": false,
"name": "shaderOverride3",
"selfEnabled": true
}
}
],
"expandedState": false,
"isolateSelected": false,
"labelColor": "Blue",
"name": "BLUE",
"selector": {
"simpleSelector": {
"customFilterValue": "",
"pattern": "",
"previousPattern": "",
"staticSelection": "",
"typeFilter": 11
}
},
"selfEnabled": true
}
}
],
"isolateSelected": false,
"name": "COLLECTION_RGB",
"selector": {
"simpleSelector": {
"customFilterValue": "",
"pattern": "*",
"previousPattern": "*",
"staticSelection": "",
"typeFilter": 1
}
},
"selfEnabled": true
}
}
],
"name": "RL_Material_ID",
"notes": "import maya.cmds as cmds\n\n\nshader = cmds.shadingNode( 'aiUtility', asShader=True, name=\"aiUtility_BLACK\" )\ncmds.setAttr('aiUtility_BLACK.shadeMode' , 2)\ncmds.setAttr('aiUtility_BLACK.color' , 0, 0, 0)\nshadingGroup = cmds.sets( shader, renderable=True, noSurfaceShader=True, empty=True, name=\"aiUtility_BLACKSG\" )\ncmds.connectAttr(shader+\".outColor\", shadingGroup+\".surfaceShader\", force=True)\n\nshader = cmds.shadingNode( 'aiUtility', asShader=True, name=\"aiUtility_RED\" )\ncmds.setAttr('aiUtility_RED.shadeMode' , 2)\ncmds.setAttr('aiUtility_RED.color' , 1, 0, 0)\nshadingGroup = cmds.sets( shader, renderable=True, noSurfaceShader=True, empty=True, name=\"aiUtility_REDSG\" )\ncmds.connectAttr(shader+\".outColor\", shadingGroup+\".surfaceShader\", force=True)\n\nshader = cmds.shadingNode( 'aiUtility', asShader=True, name=\"aiUtility_GREEN\" )\ncmds.setAttr('aiUtility_GREEN.shadeMode' , 2)\ncmds.setAttr('aiUtility_GREEN.color' , 0, 1, 0)\nshadingGroup = cmds.sets( shader, renderable=True, noSurfaceShader=True, empty=True, name=\"aiUtility_GREENSG\" )\ncmds.connectAttr(shader+\".outColor\", shadingGroup+\".surfaceShader\", force=True)\n\nshader = cmds.shadingNode( 'aiUtility', asShader=True, name=\"aiUtility_BLUE\" )\ncmds.setAttr('aiUtility_BLUE.shadeMode' , 2)\ncmds.setAttr('aiUtility_BLUE.color' , 0, 0, 1)\nshadingGroup = cmds.sets( shader, renderable=True, noSurfaceShader=True, empty=True, name=\"aiUtility_BLUESG\" )\ncmds.connectAttr(shader+\".outColor\", shadingGroup+\".surfaceShader\", force=True)",
"renderable": true
}
}
]