Grasshopper

algorithmic modeling for Rhino

Hi.

When culling a dataTree the culled branch disappears:

In this case path 23 is gone and that is a bit ennoying later on in the script. Is it possible to get the continous order back? So that number 24 now becomes 23 and so on? 

However I have tried to do my culling (prune, clean tree etc) I still get the same problem.

Thanks Rasmus

Views: 1167

Replies to This Discussion

You could use a PathMapper with {A}->{path_index} to renumber all branches. Or do you need path 23 to be there but be empty?

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Ahh... okay... I'll try. is "path_index" a command/function in the pathmapper?

No I just want path 23 to be removed from the list, as I can not use it further... I would just like the tree to be consistent.

Thanks David

You just literally type: "{path_index}" in the right box of the Path mapper. And "{A}" in the left one:

Double click on Path Mapper to open this Editor.

Perfect. Thanks. I did not know that function. Thanks guys.

What about CleanTree's option to remove empty branches?

There are three special constants you can use and they're all listed at the bottom of the Lexer Editor.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

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