Grasshopper

algorithmic modeling for Rhino

Hi

 

I'm working on a large grasshopper definition and are experiencing very low frame rate of the canvas. I think this might have something to to with me using the param viewer a lot. ( http://www.grasshopper3d.com/forum/topics/sluggishness-of-param-vie... ).

 

Is there a way of getting the data structure as a list without using the param viewer?

 

/Aron

Views: 905

Attachments:

Replies to This Discussion

In that particular case, the data structure is not so difficult and could be generated with list length + series +  a few panels with '{' and '}' + a bit of string concatenation...

Thru, but i have a lot of more complicated structures that i use in the same definition. The drawing is so slow that the computer freezes up for about 10 seconds every time you pan over the param component. Really annoying. 

 

I would guess that you could get the data out of the path mapper in some way, but i can't figure out how.

david has previously mentioned that the param viewer is based on a pretty inefficient draw algorithm - it gets really slow with long lists of paths. You'll find that if you cluster a lone param viewer you can plug its output data into a panel and see nearly the same thing, without the slowness. (you may need to insert intermediate "data" parameters between the viewer and the input/output arrows to get the cluster to function right).
Excellent performance tip!

Works Perfect! Thanks a lot!

 

posting image for furure reference.

 

/aron

Attachments:

By the way, using a script node also should do the trick rather quickly.  Input your tree into the 'x' input (or rename this input to whatever you want) making sure you specify 'tree access.'  Then enter the code below:

 

A = x.Paths

 

x is the name of the input you connected the tree into...by default, it is named x.

I've been borderline homicidal about 3 times with long lists fed to the param viewer while my screen stuttered as if I were on a 486 with 4mb of RAM playing "Full Throttle".  I must've got smarter since last I worked on this here stuff to think to check the boards this time! Thanks again for figuring it out for me :)_

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