klipper-led_effect icon indicating copy to clipboard operation
klipper-led_effect copied to clipboard

Dim lights when z-axis is closer to 0

Open thisiscam opened this issue 3 years ago • 1 comments
trafficstars

Hi,

I noticed that when my z-axis is closer to the print bed, the LEDs on the extruder reflects too much light causing my streaming camera to lost all the details. Is there a way to dim LEDs based on position of a stepper?

thisiscam avatar Apr 12 '22 21:04 thisiscam

At the moment probably not. You could try out multiplying with a Stepper Effect. But I don't think you can achieve the desired behaviour with that. I will keep this issue open and see if I can come up with something in the future.

julianschill avatar Apr 12 '22 22:04 julianschill

I added the stepper color effect, which you can use to multiply your values with a white value depending on the position.

You can use the effect rate and cutoff parameters to modify the point wher it starts dimming and the rate of dimming. Maybe experiment in the simulator.

Example:

steppercolor 1.0 0.0 multiply (1.00,1.00,1.00) 
gradient     1.0 1.0 top (0.0,0.0,0.0),(1.0,0.0,0.0),(0.0,1.0,0.0),(0.0,0.0,1.0) 

julianschill avatar Nov 15 '22 18:11 julianschill