0
$\begingroup$

I have a script with a property settings group. It defines a FloatProperty called grid_unit_size. I'd like this property to be used as the input to a shading network. Is there a way to do this?

import bpy

class DrawShapeSettings(bpy.types.PropertyGroup):
    grid_unit_size : bpy.props.FloatProperty(
        name="Grid Unit Size", description="Size of a single grid unit", default = .1, min=0, soft_max = 1
    )
    

def register():
    bpy.utils.register_class(DrawShapeSettings)
    bpy.types.Scene.draw_shape_props = bpy.props.PointerProperty(type=DrawShapeSettings)
    
def unregister():
    bpy.utils.unregister_class(DrawShapeSettings)
    del bpy.types.Scene.draw_shape_props

$\endgroup$
1