Grasshopper

algorithmic modeling for Rhino

is there a way to pass a variable to the path mapper. 

for example i use the path mapper to create a 2d list form a 1D list such as

{A;B}(i) -> {Floor(i/10)}

so that takes a basic list and gives me a tree with 10 items in each branch, but i want 10 to be a variable from another component 

it would be great if i could just pass 2 strings so the path mapper would have 2 inputs A and B and i can then pass a custom string for each side of the map  A -> B

Views: 644

Replies to This Discussion

Hi Robert,

I've been thinking about global variables for a while, these would basically be named values that are available to all expressions running inside the same grasshopper document. There's a number of problems with this, but it should be possible in theory (I borked the first two attempts so far).

--
David Rutten
david@mcneel.com
Poprad, Slovakia
global variables sound great. being able to access variables without having a connection sounds good. although for the path mapper i was thinking much simpler, instead of a single input have 3 the list, the left side of the map as string, and the right side of the map as string.

+1 from me, still very much needed!

//fr..

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