Grasshopper

algorithmic modeling for Rhino

Hello, 

I am trying to graph some graphs on structural simulations. I have build a model with some variables that are controlled by sliders. When I slide the slider manually I can record the outcome. I have already made a python file that can animate the slider. What do I have to add to the python file to automate the record as well? 

import rhinoscriptsyntax as rs
import Rhino
import time

#load Grasshopper plugin as gh
gh = Rhino.RhinoApp.GetPlugInObject("Grasshopper")

### This is used to print the methode names ###
#for func in dir (gh):
# if not func.startswith('_'): print func

#SetSliderValue("GUID",Number)

rs.EnableRedraw(True)

for i in range(-50,-40):
gh.SetSliderValue("cda78c87-0c47-40f8-b209-2c59df0ca4b5",i)
gh.RunSolver("1_flange rotation.gh")

Views: 212

Attachments:

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service