Grasshopper

algorithmic modeling for Rhino

Hello

I have to correlate a listi of parameter with the result of an operation base on that. 

I mean I have n number slider and I get 16 results. Tha only problem is that the parameter start form 1 to n (I have to catalogate in this way) and of course the result start from 0 to n-1.

How can I change that? I need that the result 10 mach the paramete 10, and not the 11.

Can you help me ?

Regards

Guido

Views: 1504

Attachments:

Replies to This Discussion

N-1 ?

You can either use a subtraction component or an expression to modify the slider value.

--

David Rutten

david@mcneel.com

Tirol, Austria

Hi David

I can't change the slider value. What I need is like this example:

NOW

Slider name: Face 05

Indices of the result: 4

WHAT I NEED

Slider name: Face 05

Indices of the result: 5

Otherwise it confuses me...

Thank you

Guido

Hello to everybody..

Maybe I didn't explain very well..

Tha question id this can be possible chance the indices of a list of element from 0 to 15 in a list from 1 to 16?

Thanks

Guido Nieri

 

No, all lists start at index=0.

If you want to pick an item out of a list using a base 1 system, then add an expression to your logic that modifies the base-1 index to a base-0 index:

--

David Rutten

david@mcneel.com

Tirol, Austria

Thank you David

I'll do in this way.

Regards

Guido

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service