-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCudaParticals_Panel.py
59 lines (55 loc) · 1.67 KB
/
CudaParticals_Panel.py
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
import os
import bpy
from bpy.types import (
Operator,
Panel,
PropertyGroup,
)
from bpy.props import (
BoolProperty,
EnumProperty,
)
bl_info = {
"name" : "CudaParticals",
"author" : "Max Oltersdorf",
"description" : "Enables the use of NIVIDA CUDA for Large realistic Particle Simulations",
"blender" : (2, 80, 0),
"version" : (0, 0, 2),
"location" : "Properties", # This is a new tab in the "properties section"
"warning" : "IN EARLY DEVELOPMENT",
"category" : "SYSTEM",
#"wiki_url": "'https://github.com/OltersdorfTechnology/CudaParticals/wiki'",
#"tracker_url": "https://github.com/OltersdorfTechnology/CudaParticals/issues",
"support" : "Dev",
}
# Define the interface
class CudaParticlePanel(bpy.types.Panel):
bl_idname = "CudaParticle_Panel"
bl_label = "CudaParticle"
bl_category = "SYSTEM"
bl_space_type = 'PROPERTIES'
bl_region_type = 'WINDOW'
# bl_context = "CudaParticle"
def draw(self, context):
layout = self.layout
#scene = context.scene
layout.label(text= "CudaParticals Properties:")
#row = layout.row()
#row.operator("view3d.print_text", text = "Print text", icon='WORLD_DATA')
#global custom_icons
self.layout.label(text="CudaParticle"),
#custom_icons = None
#custom_icons["PARTICLE_POINT"].icon_id
# end define interface
# global variable to store icons in
classes = (
CudaParticlePanel,
)
def register():
from bpy.utils import register_class
for cls in classes:
register_class(cls)
def unregister():
from bpy.utils import unregister_class
for cls in classes:
unregister_class(cls)