Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5938

Lock/unlock grasshopper solver

$
0
0

Probably a noob question…

I built a small interface with RCP, but GRASSHOPPER slows rhino down a lot, So I think of a button that executes RunPythonScript(…) that locks/unlocks the solver.

I believe the script will somehow look like this:
if IsSolverEnabled():
DisableSolver()
else:
EnableSolver()

I already found the DisableSolver method here:

How do I call this inside the python script? I don’t get the right import…

Thank You!

6 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles