Grasshopper

algorithmic modeling for Rhino

i notice that when we are coding inside GH_Python all the variables when you run a code store data, so when you change names and go foward coding those old variable still in memory 

in Rhino Python Editor there's a option in TOOLS - Reset Script Engine that flush the memory of the program and start like fresh. 

there's a way to do that in GH_Python ?

Views: 477

Replies to This Discussion

Hi Toussaint,

I don't know how you can reset the component, but if you know the name of the variable you can use ghenv.Script.RemoveVariable. For variable myVar it will be something like this:

ghenv.Script.RemoveVariable('myVar')

Take a look to "ghenv.LocalScope" as well. It shows the list of your variables from the last run.

Mostapha

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service