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 ?
Tags:
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
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
© 2024 Created by Scott Davidson. Powered by