Python: Get the Domain of a Slider


#1

Hi,

Is it possible to access the domain of a slider (that is connected to the component) within the python component?

-Miguel


#2

Anyone? @stevebaer @piac


(Giulio Piacentino) #4

Hi Miguel

@DavidRutten will do a better job than me of explaining all implications, – here are two opinions I have about this: my first impression is that this might go slightly counterintuitively for users. Another point, maybe a warning, is about solution order: do not edit the slider from components further down the line during solution. It will not work.

That being said, here is an example:

Giulio

Giulio Piacentino
for Robert McNeel & Associates
giulio@mcneel.com

slider-bounds.gh (4.8 KB)


#5

thanks a lot @piac.

I really appreciate it. The script is a single component, so hopefully I wont run into any problems.

best,
Miguel