Dynamically Change Stroke Style

Is it possible to set up an expression to adjust the Stroke Style on the fly? It allows you to enter an expression. Not sure what output it is looking for. Thanks.

You can either use runscript to bring back a BasicStrokeStyle or create a custom property on the component for StrokeWidth.

[code]from java.awt import BasicStroke

if event.propertyName == “StrokeWidth”:
event.source.strokeStyle = BasicStroke(event.newValue)[/code]

I posted a demo on this a while back. Hope this helps!