Remap Domain

(Sonia Ruta) #1

Hi All, I need to help to remap numbers into a new domain.
So, I would like to remap the numbers 0-1-2-3 to a domain 1-2-3-4.
can someone please help??

(Michael Pryor) #2

See the remap numbers component.
Capture
remap.gh (5.9 KB)

But in your case why not just add 1 to each number?

(Sonia Ruta) #3

thank’s for your answer, but I didnt’t explain myselft well.
In the attached figure I have highlighted two numbers sliders: Nmullions and Index.
the Nmullions slider goes from 0 to 3, while Index slider from 1 to 4.
When Nmullions is 0 I would like to match the number 1 in Index slider, and so on.

#4

As Michael said, you can just add 1 to the output of the Nmullions slider

1 Like
(Michael Pryor) #5

This is why it’s good to be fully descriptive from the start.