-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrenderStats_karma.nk
More file actions
166 lines (166 loc) · 7.27 KB
/
renderStats_karma.nk
File metadata and controls
166 lines (166 loc) · 7.27 KB
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
set cut_paste_input [stack 0]
version 16.0 v3
push $cut_paste_input
Group {
name renderStats_karma
tile_color 0x5bffff
note_font "Verdana Bold"
note_font_color 0xffffffff
selected true
xpos 338
ypos -469
addUserKnob {20 tab l RenderStat}
addUserKnob {26 ""}
addUserKnob {22 btnPrint l printStats t "click on this Button to Print Render Stats" T "import nuke\nimport sys\nimport os\n\n\n\n\n\ndef printStats():\n # // define MasterNode/GroupNode/ThisNode\n masterNode = nuke.thisNode()\n msg = \"\"\"host : \[metadata exr/host ]\nartist : \[metadata exr/artist ] | \[lindex \[split \[metadata exr/hip_file] /] end-2]\nengine : \[metadata exr/Software]\n---------------------------------------------\nframe (ip) : \[metadata input/frame]\npass: \[lindex \[split \[metadata input/filename] /] end-3]\nversion: \[lindex \[split \[metadata input/filename] /] end-2]\nmemory : \[metadata exr/renderMemory_s ]\n---------------------------------------------\nprimarySample : \[metadata exr/primary_samples]\nminSecondarySample : \[metadata exr/min_secondary_samples]\nmaxSecondarySample : \[metadata exr/max_secondary_samples]\nrenderTime: \[metadata exr/renderTime_s] (D:H:M.S)\npixelFilter : \[metadata exr/pixelfilter] - \[metadata exr/pixelfiltersize]\n\"\"\"\n\n\n with masterNode:\n # // clear Data\n statNode = nuke.toNode(\"Stat\")\n for n in nuke.allNodes():\n if n.Class() == \"Text2\" and nuke.toNode(\"Stat\"):\n # statNode.setSelected(True) # // Debug\n statNode\[\"message\"].setValue(msg)\n statNode.setSelected(False)\n masterNode\[\"tile_color\"].setValue(4289333247)\n else:\n print(\"Metadata missing\")\n\n\n\n\n\n\n\nprintStats()" +STARTLINE}
addUserKnob {22 btnClr l Clear t "Click on this Button To Clear Render Stats" -STARTLINE T "import nuke\nimport sys\nimport os\n\n\n\n\n\ndef clearStats():\n # // define MasterNode/GroupNode/ThisNode\n masterNode = nuke.thisNode()\n msg = \"\"\" **Click on Print btn to print the renderStat** \"\"\"\n\n\n with masterNode:\n # // clear Data\n statNode = nuke.toNode(\"Stat\")\n for n in nuke.allNodes():\n if n.Class() == \"Text2\" and nuke.toNode(\"Stat\"):\n # statNode.setSelected(True) # // Debug\n statNode\[\"message\"].setValue(msg)\n statNode.setSelected(False)\n masterNode\[\"tile_color\"].setValue(0xFF0000FF)\n else:\n pass\n\n\n\n\n\n\n\nclearStats()"}
addUserKnob {26 ""}
addUserKnob {41 global_font_scale l "global font scale" T Stat.global_font_scale}
addUserKnob {26 ""}
addUserKnob {20 custom_stats_grp l custom_stats t "add custom Values to add as stats" n 1}
custom_stats_grp 0
addUserKnob {1 inputStat1 l "" t "Add stat value like \[metadata input/filename]" +STARTLINE}
addUserKnob {22 btnAdd l + t "Add to Stat" -STARTLINE T "import nuke\nimport sys\nimport os\n\n\n\n\n\ndef customStatsAdd():\n # // define MasterNode/GroupNode/ThisNode\n masterNode = nuke.thisNode()\n msg = masterNode\[\"inputStat1\"].value()\n\n\n with masterNode:\n # // clear Data\n statNode = nuke.toNode(\"customStat1\")\n for n in nuke.allNodes():\n if n.Class() == \"Text2\" and nuke.toNode(\"customStat1\"):\n # statNode.setSelected(True) # // Debug\n statNode\[\"message\"].setValue(msg)\n statNode.setSelected(False)\n else:\n pass\n\n\n\n\n\n\n\ncustomStatsAdd()"}
addUserKnob {22 btnRemove l - t "Remove Stat" -STARTLINE T "import nuke\nimport sys\nimport os\n\n\n\n\n\ndef customStatsClr():\n # // define MasterNode/GroupNode/ThisNode\n masterNode = nuke.thisNode()\n msg = \"\"\" \"\"\"\n\n\n with masterNode:\n # // clear Data\n statNode = nuke.toNode(\"customStat1\")\n for n in nuke.allNodes():\n if n.Class() == \"Text2\" and nuke.toNode(\"customStat1\"):\n # statNode.setSelected(True) # // Debug\n statNode\[\"message\"].setValue(msg)\n statNode.setSelected(False)\n else:\n pass\n\n\n\n\n\n\n\ncustomStatsClr()"}
addUserKnob {20 endGroup n -1}
addUserKnob {26 "" +STARTLINE}
addUserKnob {26 devLbl l "" +STARTLINE T "<b><font color='#3B3E3F'>Devoloped & maintained by: Ritwik Giri</font></b>"}
addUserKnob {20 tab_extra l extra +INVISIBLE}
addUserKnob {22 btnExternalStat l "prman : viewExternalStat-XML" t "Hit this button to View Rman External stat (XML)" +STARTLINE}
}
Input {
inputs 0
name Input1
xpos 179
ypos -515
}
Text2 {
font_size_toolbar 100
font_width_toolbar 100
font_height_toolbar 100
message "**Click on Print btn to print the renderStat**"
old_message {
{42 42 67 108 105 99 107 32 111 110 32 80 114 105 110 116 32 98 116 110 32 116 111 32 112 114 105 110 116 32 116 104 101 32 114 101 110 100 101 114 83 116 97 116 42 42}
}
box {13 6 1013 57}
xjustify justify
yjustify bottom
transforms {
{0 2}
}
cursor_position 44
font {{ Tahoma : Regular : tahoma.ttf : 0 }}
global_font_scale 0.5
center {2224 1548}
cursor_initialised true
initial_cursor_position {
{13 6}
}
group_animations {
{0}
imported:
0
selected:
items:
"root transform/"
}
animation_layers {
{1 11 2224 1548 0 0 1 1 0 0 0 0}
}
color {1 0.391894 0 1}
color_panelDropped true
background_color {0.818206 0.369393 0 1}
background_color_panelDropped true
name Stat
xpos 179
ypos -475
}
Text2 {
font_size_toolbar 100
font_width_toolbar 100
font_height_toolbar 100
message " "
old_message {
{32}
}
box {0 2793 4170 2844}
xjustify justify
transforms {
{0 2}
}
cursor_position 174
font {{ Tahoma : Regular : tahoma.ttf : 0 }}
global_font_scale {{renderStats_karma.Stat.global_font_scale}}
center {2048 1080}
cursor_initialised true
autofit_bbox false
initial_cursor_position {
{0 3096}
}
group_animations {
{0}
imported:
0
selected:
items:
"root transform/"
}
animation_layers {
{1 11 2048 1080 0 0 1 1 0 0 0 0}
}
color {0.359425 1 0 1}
color_panelDropped true
name customStat1
xpos 179
ypos -415
}
Text2 {
font_size_toolbar 100
font_width_toolbar 100
font_height_toolbar 100
message "Frame (t) : \[frame]"
old_message {
{70 114 97 109 101 32 40 116 41 32 58 32 49 48 48 49}
}
old_expression_markers {
{12 15}
}
box {1978.875 5.875 2398.625 53.625}
xjustify justify
yjustify center
transforms {
{0 2}
}
cursor_position 18
font {{ Tahoma : Regular : tahoma.ttf : 0 }}
global_font_scale 0.5
center {2224 1548}
cursor_initialised true
autofit_bbox false
initial_cursor_position {
{2054.5 28}
}
group_animations {
{0}
imported:
0
selected:
items:
"root transform/"
}
animation_layers {
{1 11 2224 1548 0 0 1 1 0 0 0 0}
}
color {1 0.391894 0 1}
color_panelDropped true
background_color {0.818206 0.369393 0 1}
background_color_panelDropped true
name Frame_t
xpos 179
ypos -367
}
Output {
name Output1
xpos 179
ypos -328
}
end_group