Grasshopper

algorithmic modeling for Rhino

Hello,

I'm trying to modify the indicies of a list such that the term "L" is added before the index. I currently have the path mapper set up with the expression:

{A}(i) -> {A}(i+1) to shift the index number.

Is it possible to add literal terms to lexical operations like:

{A}(i) -> {A}"L"(i+1)

Is there a better way to do this? For context, this is part of a larger script to generate floor plans from a massing, tag them all with level numbers (L1, L2, L3, etc.), areas, and arrange for CAD export.

Thanks

Views: 448

Attachments:

Replies to This Discussion

Path mapper is meant to operate on the whole data structure, it really does not modify the indices.

If you want to add tag, you can use Math and String operations like Format or Concat.

Ok. I've moved on for now. But thanks for clearing that up.

Also, paths and indices are pure integer data types. They do not suppose string literals. 

--

David Rutten

david@mcneel.com

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