Advertisement
Guest User

Untitled

a guest
Apr 26th, 2015
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. @classmethod
  2. def register(cls):
  3. pass
  4.  
  5. @classmethod
  6. def unregister(cls):
  7. pass
  8.  
  9. class CyclesRenderSettings(bpy.types.PropertyGroup):
  10. @classmethod
  11. def register(cls):
  12. bpy.types.Scene.cycles = PointerProperty(
  13. name="Cycles Render Settings",
  14. description="Cycles render settings",
  15. type=cls,
  16. )
  17. cls.device = EnumProperty(
  18. name="Device",
  19. description="Device to use for rendering",
  20. items=enum_devices,
  21. default='CPU',
  22. )
  23. # ... and so on adding properties to cls
  24.  
  25. @classmethod
  26. def unregister(cls):
  27. del bpy.types.Scene.cycles
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement