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
Tags:
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
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by