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

How to Change Geometry with ETO Sliders (Without Crashing Rhino)?

$
0
0

I’ve got some scripts I made in Grasshopper that I would like to convert to Python/ETO forms so as to be more user friendly for people who may not be familiar with Grasshopper.

I’ve run into a problem, which is that while I can, say, scale a circle by selecting its radius with a dropdown, if I try to do that with a slider, Rhino crashes.

Is there some way to make changes to geometry with an ETO slider without crashing Rhino?

I want to do fairly complicated things (for example, build some sweep surfaces that update as the slider is moved), but I have created this simple example that simply scales a circle, and I can’t get it to work.

NOTE: the script needs to run under python2 to be compatible with Rhino6 and Rhino7 if at all possible.

circle test.py (1.7 KB)

8 posts - 4 participants

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles