Advertisement
Guest User

nuke 3d extrude text

a guest
Apr 12th, 2019
1,322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.90 KB | None | 0 0
  1. Gizmo {
  2. addUserKnob {20 extrude}
  3. addUserKnob {7 distance t "extrusion distance" R 0 0.01}
  4. distance 0.006
  5. addUserKnob {26 ""}
  6. addUserKnob {26 website l "" +STARTLINE T "<a href=\"https://www.maxvanleeuwen.com\"><font color=\"#b2b2b2\">maxvanleeuwen.com</font></a>"}
  7. addUserKnob {20 light}
  8. addUserKnob {6 relight t "enables lighting\n\ndisable if you want to do the relighting yourself (using the P and N pass in the 'out' tab)" +STARTLINE}
  9. relight true
  10. addUserKnob {26 "" +STARTLINE}
  11. addUserKnob {7 rotation t "rotate the light around the text" R 0 359}
  12. addUserKnob {26 ""}
  13. addUserKnob {41 color T Light2.color}
  14. addUserKnob {41 intensity T Light2.intensity}
  15. addUserKnob {41 falloff_type l "falloff type" T Light2.falloff_type}
  16. addUserKnob {20 quality}
  17. addUserKnob {68 repeatn l "repeat normals" t "repeat the normal edges\n\nwill increase the quality of the relighting, but it might chop edges off (especially with thin fonts)" M {0 1 2 3 4 5 "" ""}}
  18. repeatn 3
  19. addUserKnob {3 layers t "multiply the amount of particles (x10) used to render the extrusion\n\nhigher values increase quality, but slow down rendering significantly"}
  20. layers 5
  21. addUserKnob {26 ""}
  22. addUserKnob {41 antialiasing T ScanlineRender2.antialiasing}
  23. addUserKnob {41 samples T ScanlineRender2.samples}
  24. addUserKnob {20 out}
  25. addUserKnob {6 N t "output a normal pass for the text" +STARTLINE}
  26. N true
  27. addUserKnob {6 P t "output a position pass for the text" +STARTLINE}
  28. P true
  29. }
  30. BackdropNode {
  31. inputs 0
  32. name BackdropNode1
  33. tile_color 0x4c4c4cff
  34. label "fake normals"
  35. note_font_size 42
  36. xpos 72
  37. ypos -338
  38. bdwidth 189
  39. bdheight 417
  40. }
  41. BackdropNode {
  42. inputs 0
  43. name BackdropNode2
  44. tile_color 0x4c4c4cff
  45. label "particle stack"
  46. note_font_size 42
  47. xpos 72
  48. ypos 162
  49. bdwidth 255
  50. bdheight 312
  51. }
  52. BackdropNode {
  53. inputs 0
  54. name BackdropNode3
  55. tile_color 0x4c4c4cff
  56. label light
  57. note_font_size 42
  58. xpos -144
  59. ypos 583
  60. bdwidth 459
  61. bdheight 301
  62. }
  63. BackdropNode {
  64. inputs 0
  65. name BackdropNode4
  66. tile_color 0x4c4c4cff
  67. label "original in front"
  68. note_font_size 42
  69. xpos 59
  70. ypos 1021
  71. bdwidth 160
  72. bdheight 153
  73. }
  74. BackdropNode {
  75. inputs 0
  76. name BackdropNode5
  77. tile_color 0x4c4c4cff
  78. label "output channels"
  79. note_font_size 42
  80. xpos 58
  81. ypos 1240
  82. bdwidth 150
  83. bdheight 163
  84. }
  85. BasicMaterial {
  86. inputs 0
  87. diffuse 1
  88. specular 0
  89. name BasicMaterial3
  90. xpos -22
  91. ypos 749
  92. }
  93. Dot {
  94. name Dot9
  95. xpos 12
  96. ypos 819
  97. }
  98. Camera2 {
  99. inputs 0
  100. translate {0 0 1}
  101. name Camera2
  102. xpos 253
  103. ypos 658
  104. }
  105. set N93366380 [stack 0]
  106. Dot {
  107. name Dot8
  108. xpos 277
  109. ypos 854
  110. }
  111. Axis2 {
  112. inputs 0
  113. rotate {0 0 {parent.rotation}}
  114. name Axis1
  115. xpos -113
  116. ypos 682
  117. }
  118. Light2 {
  119. translate {0 0.5 0}
  120. depthmap_slope_bias 0.01
  121. name Light2
  122. xpos -113
  123. ypos 748
  124. }
  125. Dot {
  126. name Dot7
  127. xpos -89
  128. ypos 854
  129. }
  130. push $N93366380
  131. Input {
  132. inputs 0
  133. name Input1
  134. xpos 99
  135. ypos -492
  136. }
  137. Dot {
  138. name Dot10
  139. xpos 133
  140. ypos -393
  141. }
  142. set Nca955500 [stack 0]
  143. Dot {
  144. name Dot1
  145. xpos 223
  146. ypos -393
  147. }
  148. set Nca955180 [stack 0]
  149. Dot {
  150. name Dot2
  151. xpos 223
  152. ypos 20
  153. }
  154. push $Nca955500
  155. Expression {
  156. temp_name0 m1
  157. temp_expr0 "a(x-1,y) < a(x+1, y) ? -1 : 1"
  158. temp_name1 m2
  159. temp_expr1 "a(x,y-1) < a(x, y+1) ? -1 : 1"
  160. expr0 "((a(x-1,y) + a(x+1,y)) / 2) * m1"
  161. expr1 "((a(x,y-1) + a(x,y+1)) / 2) * m2"
  162. expr2 0
  163. channel3 none
  164. name FakeEdgeNormals
  165. xpos 99
  166. ypos -267
  167. }
  168. Expression {
  169. expr0 "r == 1 ? (r(x-1,y) == 1 ? (r(x+1, y) == 1 ? (1) : (r(x+1,y))) : (r(x-1,y))) : (r)"
  170. expr1 "g == 1 ? (g(x,y-1) == 1 ? (g(x, y+1) == 1 ? (1) : (g(x,y+1))) : (g(x,y-1))) : (g)"
  171. channel2 {-rgba.red -rgba.green -rgba.blue none}
  172. channel3 none
  173. name RepeatNormals
  174. xpos 99
  175. ypos -198
  176. disable {{"parent.repeatn - 1 < 0"}}
  177. }
  178. Expression {
  179. expr0 "r == 1 ? (r(x-1,y) == 1 ? (r(x+1, y) == 1 ? (1) : (r(x+1,y))) : (r(x-1,y))) : (r)"
  180. expr1 "g == 1 ? (g(x,y-1) == 1 ? (g(x, y+1) == 1 ? (1) : (g(x,y+1))) : (g(x,y-1))) : (g)"
  181. channel2 {-rgba.red -rgba.green -rgba.blue none}
  182. channel3 none
  183. name RepeatNormals1
  184. xpos 99
  185. ypos -172
  186. disable {{"parent.repeatn - 1 < 1"}}
  187. }
  188. Expression {
  189. expr0 "r == 1 ? (r(x-1,y) == 1 ? (r(x+1, y) == 1 ? (1) : (r(x+1,y))) : (r(x-1,y))) : (r)"
  190. expr1 "g == 1 ? (g(x,y-1) == 1 ? (g(x, y+1) == 1 ? (1) : (g(x,y+1))) : (g(x,y-1))) : (g)"
  191. channel2 {-rgba.red -rgba.green -rgba.blue none}
  192. channel3 none
  193. name RepeatNormals2
  194. xpos 99
  195. ypos -146
  196. disable {{"parent.repeatn - 1 < 2"}}
  197. }
  198. Expression {
  199. expr0 "r == 1 ? (r(x-1,y) == 1 ? (r(x+1, y) == 1 ? (1) : (r(x+1,y))) : (r(x-1,y))) : (r)"
  200. expr1 "g == 1 ? (g(x,y-1) == 1 ? (g(x, y+1) == 1 ? (1) : (g(x,y+1))) : (g(x,y-1))) : (g)"
  201. channel2 {-rgba.red -rgba.green -rgba.blue none}
  202. channel3 none
  203. name RepeatNormals3
  204. xpos 99
  205. ypos -120
  206. disable {{"parent.repeatn - 1 < 3"}}
  207. }
  208. Expression {
  209. expr0 "r == 1 ? (r(x-1,y) == 1 ? (r(x+1, y) == 1 ? (1) : (r(x+1,y))) : (r(x-1,y))) : (r)"
  210. expr1 "g == 1 ? (g(x,y-1) == 1 ? (g(x, y+1) == 1 ? (1) : (g(x,y+1))) : (g(x,y-1))) : (g)"
  211. channel2 {-rgba.red -rgba.green -rgba.blue none}
  212. channel3 none
  213. name RepeatNormals4
  214. xpos 99
  215. ypos -94
  216. disable {{"parent.repeatn - 1 < 4"}}
  217. }
  218. add_layer {N N.red N.green N.blue N.alpha}
  219. Shuffle {
  220. in rgb
  221. alpha black
  222. out N
  223. name Shuffle1
  224. label "\[value in]"
  225. xpos 99
  226. ypos -35
  227. }
  228. Copy {
  229. inputs 2
  230. channels rgb
  231. name Copy1
  232. xpos 99
  233. ypos 3
  234. }
  235. Dot {
  236. name Dot5
  237. xpos 133
  238. ypos 236
  239. }
  240. set Nca99b880 [stack 0]
  241. Dot {
  242. name Dot4
  243. xpos 270
  244. ypos 236
  245. }
  246. BasicMaterial {
  247. diffuse 0
  248. specular 0
  249. name BasicMaterial2
  250. xpos 236
  251. ypos 332
  252. }
  253. Dot {
  254. name Dot6
  255. xpos 270
  256. ypos 430
  257. }
  258. push $Nca99b880
  259. Card2 {
  260. cast_shadow false
  261. receive_shadow false
  262. rows 2
  263. columns {{rows}}
  264. lens_in_focal 50
  265. lens_in_haperture 24.576
  266. rotate {-90 0 0}
  267. control_points {3 3 3 6
  268.  
  269. 1 {-0.5 -0.5 0} 0 {0.1666666865 0 0} 0 {0 0 0} 0 {0 0.1666666865 0} 0 {0 0 0} 0 {0 0 0}
  270. 1 {0 -0.5 0} 0 {0.1666666716 0 0} 0 {-0.1666666716 0 0} 0 {0 0.1666666865 0} 0 {0 0 0} 0 {0.5 0 0}
  271. 1 {0.5 -0.5 0} 0 {0 0 0} 0 {-0.1666666865 0 0} 0 {0 0.1666666865 0} 0 {0 0 0} 0 {1 0 0}
  272. 1 {-0.5 0 0} 0 {0.1666666865 0 0} 0 {0 0 0} 0 {0 0.1666666716 0} 0 {0 -0.1666666716 0} 0 {0 0.5 0}
  273. 1 {0 0 0} 0 {0.1666666716 0 0} 0 {-0.1666666716 0 0} 0 {0 0.1666666716 0} 0 {0 -0.1666666716 0} 0 {0.5 0.5 0}
  274. 1 {0.5 0 0} 0 {0 0 0} 0 {-0.1666666865 0 0} 0 {0 0.1666666716 0} 0 {0 -0.1666666716 0} 0 {1 0.5 0}
  275. 1 {-0.5 0.5 0} 0 {0.1666666865 0 0} 0 {0 0 0} 0 {0 0 0} 0 {0 -0.1666666865 0} 0 {0 1 0}
  276. 1 {0 0.5 0} 0 {0.1666666716 0 0} 0 {-0.1666666716 0 0} 0 {0 0 0} 0 {0 -0.1666666865 0} 0 {0.5 1 0}
  277. 1 {0.5 0.5 0} 0 {0 0 0} 0 {-0.1666666865 0 0} 0 {0 0 0} 0 {0 -0.1666666865 0} 0 {1 1 0} }
  278. name Card2
  279. xpos 99
  280. ypos 267
  281. }
  282. push 0
  283. push 0
  284. ParticleEmitter {
  285. inputs 3
  286. start_frame -10
  287. rate {{parent.layers}}
  288. velocity {{-parent.distance}}
  289. size 1
  290. name ParticleEmitter1
  291. xpos 99
  292. ypos 330
  293. }
  294. TransformGeo {
  295. rotate {90 0 0}
  296. name TransformGeo1
  297. xpos 99
  298. ypos 379
  299. }
  300. ApplyMaterial {
  301. inputs 2
  302. name ApplyMaterial2
  303. xpos 99
  304. ypos 426
  305. }
  306. push 0
  307. add_layer {P P.red P.green P.blue P.alpha}
  308. ScanlineRender {
  309. inputs 3
  310. conservative_shader_sampling false
  311. ztest_enabled false
  312. max_tessellation 1
  313. shutter 0
  314. motion_vectors_type off
  315. MB_channel none
  316. output_shader_vectors true
  317. P_channel P
  318. name ScanlineRender2
  319. xpos 99
  320. ypos 678
  321. }
  322. FrameHold {
  323. first_frame 1
  324. name FrameHold1
  325. xpos 99
  326. ypos 704
  327. }
  328. ReLight {
  329. inputs 4
  330. normal N
  331. position P
  332. name ReLight1
  333. xpos 99
  334. ypos 850
  335. disable {{!parent.relight}}
  336. }
  337. Dot {
  338. name Dot3
  339. xpos 133
  340. ypos 965
  341. }
  342. set Nca9e7180 [stack 0]
  343. Dot {
  344. name Dot11
  345. xpos -2
  346. ypos 965
  347. }
  348. set Nca9e6e00 [stack 0]
  349. Dot {
  350. name Dot15
  351. xpos -108
  352. ypos 965
  353. }
  354. Shuffle {
  355. in P
  356. name Shuffle3
  357. label "\[value in]"
  358. xpos -142
  359. ypos 1256
  360. }
  361. Dot {
  362. name Dot16
  363. xpos -108
  364. ypos 1346
  365. }
  366. push $Nca9e6e00
  367. Shuffle {
  368. in N
  369. name Shuffle2
  370. label "\[value in]"
  371. xpos -36
  372. ypos 1257
  373. }
  374. Dot {
  375. name Dot14
  376. xpos -2
  377. ypos 1320
  378. }
  379. push $Nca955180
  380. Dot {
  381. name Dot13
  382. xpos 412
  383. ypos -393
  384. }
  385. Dot {
  386. name Dot12
  387. xpos 412
  388. ypos 1135
  389. }
  390. push $Nca9e7180
  391. Remove {
  392. operation keep
  393. channels rgba
  394. name Remove1
  395. xpos 99
  396. ypos 1105
  397. }
  398. Merge2 {
  399. inputs 2
  400. name Merge1
  401. xpos 99
  402. ypos 1131
  403. }
  404. ShuffleCopy {
  405. inputs 2
  406. in N
  407. alpha alpha2
  408. black red
  409. white green
  410. red2 blue
  411. green2 black
  412. out2 N
  413. name ShuffleCopy1
  414. xpos 99
  415. ypos 1316
  416. disable {{!parent.N}}
  417. }
  418. ShuffleCopy {
  419. inputs 2
  420. in P
  421. alpha alpha2
  422. black red
  423. white green
  424. red2 blue
  425. green2 black
  426. out2 P
  427. name ShuffleCopy2
  428. xpos 99
  429. ypos 1342
  430. disable {{!parent.P}}
  431. }
  432. Output {
  433. name Output1
  434. xpos 99
  435. ypos 1473
  436. }
  437. end_group
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement