Grasshopper

algorithmic modeling for Rhino

Hi, I'd like to keep track of the size of a definition with an increasing number of GHPython components.

Is there a way to

a) count the summed up lines of code present in the definition?

b) output the individual number of lines from individual python components?

Cheers,

Max

Views: 295

Replies to This Discussion

Hi Max, attached a script I wrote a while back. You'll have to process the strings to calculate the number of lines (use nameOfString.splitlines()), but it should get you started. /A

Attachments:

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