Skip to content

Commit

Permalink
Standard radius resizing
Browse files Browse the repository at this point in the history
  • Loading branch information
jackplum64 committed Nov 28, 2023
1 parent 522b425 commit 6d7b492
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 1 addition & 2 deletions bleMD/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,6 @@ def execute(self, context):
break


#Not currently functional
#TODO: set up color map to color ramp
if mytool.my_enum == 'OP1':
self.clearNode()
self.assignNode(self.colormap32['viridis'])
Expand Down Expand Up @@ -300,6 +298,7 @@ def draw(self, context):
layout.prop(mytool, "my_enum")
row = layout.row()
row.operator("wm.enumerator")
layout.prop(mytool, "my_radius")

layout.label(text="Animation")

Expand Down
2 changes: 2 additions & 0 deletions bleMD/bleMDNodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ def defaultSettings():

bpy.context.space_data.context = 'OBJECT'

def updateRadius(self, context):
bpy.data.node_groups["geonode_object"].nodes["Mesh to Points"].inputs[3].default_value = self.my_radius

def makeSun():
lamp = bpy.data.objects.get('Sun')
Expand Down
7 changes: 7 additions & 0 deletions bleMD/bleMDProperties.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,13 @@ def openLAMMPSFile(self, context):

)

my_radius: FloatProperty(
name="Standard Radius",
description="Change the radius size",
default=1,
update=updateRadius,
)

#
# Ovito Modifiers
#
Expand Down

0 comments on commit 6d7b492

Please sign in to comment.