Feed loop iterations with attribute

   1324   4   1
User Avatar
Member
141 posts
Joined: Dec. 2015
Offline
Got a bunch of buildings. The footprints are extruded to random heights. I'd like to clip each building into 3m tall floors. My question is if I can feed the iterations parameter with the number of levels (stored as a primitive attribute in each footprint)?

Cheers


Szabolcs
User Avatar
Member
141 posts
Joined: Dec. 2015
Offline
Guys?

No answer?
User Avatar
Member
2042 posts
Joined: Sept. 2015
Offline
You always improve your chance of a reply if you post a hip.
User Avatar
Member
141 posts
Joined: Dec. 2015
Offline
Babaj, you are right. So here's the hip file (similar to the original but I can't give that hip file)

So I have a couple of footprints. Each has a floor attribute. I need to extrude them to the height of the floors, and then in a second loop, I need to clip them to later insert windows, etc. I would like to control the second loop's iteration with the floors attribute.

Attachments:
forloop.hipnc (90.1 KB)

User Avatar
Member
141 posts
Joined: Dec. 2015
Offline
OK, meanwhile I resolved, I just had to use the prim() function!
  • Quick Links