daily pastebin goal
6%
SHARE
TWEET

Untitled

a guest Feb 13th, 2018 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import bpy
  2. from bpy.props import PointerProperty
  3.  
  4. def init():
  5.     bpy.types.Material.luxcore = PointerProperty(type=LuxCoreMaterialProps)
  6.  
  7. class LuxCoreMaterialProps(bpy.types.PropertyGroup):
  8.     node_tree = PointerProperty(name="Node Tree", type=bpy.types.NodeTree)
  9.    
  10. >>> material = bpy.data.materials['Material']
  11. >>> material.luxcore.node_tree
  12. bpy.data.node_groups['Material']
RAW Paste Data
Top