This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import System.Drawing | |
import System.Windows.Forms | |
from System.Drawing import * | |
from System.Windows.Forms import * | |
class SliderForm(Form): | |
def __init__(self): | |
self.__value_changed_callback = None | |
self.InitializeComponent() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The following script is meant to be run inside of IronPython | |
# It demonstrates how to automate Rhino from a script | |
import System | |
# start an instance of Rhino | |
t = System.Type.GetTypeFromProgID("Rhino5.Application") | |
rhino = System.Activator.CreateInstance(t) | |
# show Rhino (optional) | |
rhino.Visible = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import scriptcontext | |
import time | |
import System | |
import Rhino | |
rc, view = Rhino.Input.RhinoGet.GetView("select view") | |
print "position mouse where you want" | |
for i in [5,4,3,2,1]: | |
time.sleep(0.5) |