Pc.script.attribute slider to have negative range

When I have this in a script…

pc.script.attribute(‘degreesPerSecond’, ‘number’, 90, { min:-180, max: 180});

The range in the UI just goes from 0 to 180 ( with 180 being half way across, so it looks like the range button has a range 0 to 360 ).

Would be cool to have the ability to slide values to negative numbers.

Thanks for feedback, we will add this feature request.

Update script attribute slider, now it can have any negative/positive numbers for min and max.

1 Like

Thanks for adding that Max!

1 Like