Grasshopper

algorithmic modeling for Rhino

Hey all,

I have a question on the python script component within GH.

I am trying to set a value on a slider using SetSliderValue, and then Bake the resulting geometry into Rhino.

I put a RunSolver in between the slider setting, and baking though each time I run this script, one or the other happens, but not both.

So either the slider would move, or the geometry would be baked, but they don't happen within one execution.

Attached a minimal example.

Thanks!

Tim

Views: 837

Attachments:

Replies to This Discussion

Hi Tim,

I assume you are following designalyze tutorials?

At my side, the baking part is sometimes omitted. I tried replacing "Button" with "Boolean Toggle" and it worked. Why? No idea. Maybe because these grasshopper methods were meant for automating grasshopper definitions from RhinoPython Editor, and not really for automating grasshopper definitions from grasshopper.
Could you explain, what exactly do you want to do?

Attachments:

Hey, thanks for your help again. Yes, your code works, but not if I press "Test" or "ok". So I have to click okay, change the slider manually, and click the button to change it back and bake it.

Didn't know they were so popular, but yeah I followed it, and now using very similar code to do things.

I copied the code to Rhino, and all works. Just the hassle of copying the GUIDs manually. The other thing I noticed was that my code stops after BakingObject, and that is from RhinoPython (not GH). 

But yeah, I am trying to union solids in different ways, and then baking them in a grid. (pretty much identical to that tutorial)

RSS

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