Grasshopper

algorithmic modeling for Rhino

Dear all,

I have modified the base GH_NumberSlider by hiding the original TickCount and TickValue methods in the code attached. (TickValue TickCount.cs)

I, then iterate though each value with a recursive function using the code:

slider.TickValue++ 

and after each iteration I expire the solution using:

Document.NewSolution(false);
Rhino.RhinoDoc.ActiveDoc.Views.Redraw();

Causing the slider value to update.

This works, however after running the final iteration the wires are all orange and the data doesn't appear in the panel - see End of Solution.jpg.

Only when I interact with the canvas for example by dropping a component on the canvas do the wires turn green and all the data appears in the panels - ComponentOnCanvas.jpg

Why is this the case? I am I forgetting to expire something? I can't work out what is causing this behavior! 

Many thanks!

Views: 310

Attachments:

Replies to This Discussion

try slider.ExpireSolution(true)

Hi Panda,

That works but afterwards I get some strange behavior from Grasshopper I cannot pan in the canvas

left or right and I cannot disconnect or reconnect wires I can only drop components onto the canvas. 

Panda again many thanks for your help, this was a separate problem described and solved here:

http://www.grasshopper3d.com/forum/topics/strange-behaviour-from-gr...

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