Grasshopper

algorithmic modeling for Rhino

Hello,

I have been looking for a method to detect the display mode of the grasshopper canvas, is there one?

In particular I'm interested in knowing if the display mode is set to 'draw icons' or not.  If there is a way to detect this I'd be appreciate being pointed in the right direction as I'm new to the area of component attributes and the canvas render methods. If there are events associated with changing the canvas display mode those would be useful too.

Thanks in advance.

Views: 487

Replies to This Discussion

bool Grasshopper.CentralSettings.CanvasObjectIcons{ get; set; }

event Grasshopper.CentralSettings.CanvasObjectIconsChanged;

It's all static so available all the time.

Thanks David - this works!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service