Grasshopper

algorithmic modeling for Rhino

I have a variable expression that I need to remap to get a value of Z and use the Point XYZ. Do I need something in between? The remap result give me an error when I connect it directly to Point XYZ.

Thanx,

Amanda

Views: 874

Replies to This Discussion

You need to know the domain of the current Z value, and the domain of value to which you want Z to remap.
Both data are required as "Remap" component inputs. The third one is of course the Z value itself.

I didn't get! Let me try to explain you better and maybe you can help me! I have this variable expression (p+q<=r)  and it is the expression I need to remap. By now I have a slider (height) that gives the z coordinator and I want to get Z from this expression .

Sorry, I do not understand.

Neither do I. I'm not sure what you mean by "remapping" in this case.

The expression you posted (p+q<=r) returns a Boolean or a Null. Either p+q is less than or equal to r (return code TRUE), it's larger than r (return code FALSE) or p+q doesn't make any sense (return code NULL) or <=r doesn't make any sense (return code NULL).

Whether or not the expression makes sense depends on the data types of p, q and r.

True, False and Null are not usually valid z-coordinates which is why I'm confused.

--

David Rutten

david@mcneel.com

Tirol, Austria

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