nik684

Untitled

Oct 1st, 2020 (edited)
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. (
  2. ::CB_NewNodeMtl
  3. ::CB_graymaterial = Standard()
  4.  
  5. fn CB_NewNodeMtl =
  6. (
  7. thenode = callbacks.notificationParam()
  8. if iskindof thenode geometryclass then
  9. (
  10. if thenode.material == undefined then
  11. (
  12. thenode.material = CB_graymaterial
  13. thenode.wirecolor = black
  14. )
  15. )
  16. )
  17. callbacks.removeScripts id:#createnodemtl
  18. callbacks.addScript #nodecreated "CB_NewNodeMtl()" id:#createnodemtl
  19. )
Add Comment
Please, Sign In to add comment