algorithmic modeling for Rhino
Tags:
Hi Eduardo
Check the attached files.
Hi Naruto, thank you for the method but i was looking for a way doesn't use gh lib. Simply a cleaner way to avoid the trick of ( a = x ).
A "clean" way would be to make a GH datatree in the script and populate it. See attached file..
It uses gh lib anyway. It's weird that, making grasshopper computing lists in series with an (a = x) is quite simple, but very dirty. And it seems there is no way to avoid a clustering to have just one component to appear.
Andreas' method is quite simple if we need a simplifyed data structure. But it doesn't if we use a more complex structure {A;B;C'...;n}, which is a structure coming from Python lists solving.
I don't see why it is "bad" to import the grasshopper assembly. If you're going to be making or modifying gh datatrees via scripting you are going to need it. You can make the datatree structure as complex as you like using the methods offered by the datatree class. To learn more about this I would suggest downloading the grasshopper SDK. All that said, it sounds like you can probably reduce your complexity by implementing whatever algorithm is making your definition so complex to whatever your Python script is doing (i.e. handle the complexity using nested loops and what not inside the Python component). But as always, easier to trouble shoot with a concrete example ;)
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