Stats
Actions
Tags
From pysbs-dev
Generate PySBS code to add an input parameter to a graph. Use when user wants to add sliders, color pickers, dropdowns, or other input widgets.
How this skill is triggered — by the user, by Claude, or both
Slash command
/pysbs-dev:add-parameter [param type] [identifier][param type] [identifier]The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Generate PySBS code to add an input parameter to a Substance graph.
Generate PySBS code to add an input parameter to a Substance graph.
Based on $ARGUMENTS, generate Python code to add the specified parameter type.
| Widget | Type | Use Case |
|---|---|---|
| SLIDER_FLOAT1 | float | 0-1 values |
| SLIDER_INT1 | int | Count, index |
| COLOR_FLOAT3 | RGB | Color picker |
| COLOR_FLOAT4 | RGBA | Color with alpha |
| BUTTON_BOOL | bool | Toggle |
| DROPDOWN_INT1 | int | Mode selection |
| ANGLE_FLOAT1 | float | Rotation |
| POSITION_FLOAT2 | [x,y] | 0-1 position |
from pysbs import sbsenum
param = graph.addInputParameter(
aIdentifier='intensity',
aWidget=sbsenum.WidgetEnum.SLIDER_FLOAT1,
aDefaultValue=0.5,
aLabel='Intensity',
aGroup='Settings',
aOptions={
sbsenum.WidgetOptionEnum.MIN: 0.0,
sbsenum.WidgetOptionEnum.MAX: 1.0
}
)
# Create dynamic link
dyn = node.setDynamicParameter(sbsenum.CompNodeParamEnum.OPACITY)
dyn.setToInputParam(graph, aInputParamIdentifier='intensity')
# Or expose directly
graph.exposeAsInputParameter(aDoc=doc, aNode=node, aIdentifier='opacity')
param = graph.addInputParameter(
aIdentifier='sub_param',
aWidget=sbsenum.WidgetEnum.SLIDER_FLOAT1,
aDefaultValue=0.5,
aVisibleIf='enabled' # Show when 'enabled' is true
)
npx claudepluginhub juyeongyi/jylee_claude_marketplace --plugin pysbs-devCreates structured, bite-sized implementation plans from specs or requirements before writing code. Useful for breaking down multi-step tasks into testable steps with file structure and task boundaries.