Grasshopper

algorithmic modeling for Rhino

Hi,

Related to this project http://www.grasshopper3d.com/group/ghowl/forum/topics/control-osc

I managed to isolate sliders within rectangular markups and retrieve their bounds an value.

Now I would like to add/remove parametric markups to the canvas, but GH_Markup.Marks seems to be read only if I believe the reflect output?

Views: 701

Attachments:

Replies to This Discussion

If you want to add a specific object to the canvas I think you're better off making a new one rather than using MarkUp. Markups will probably change drastically at some point in the future when I have some time to redesign them.

If you want to add an object like Markups, Scribbles and Jumps then you shouldn't implement IGH_ActiveObject. Instead all you have to do is implement the IGH_DocumentObject interface, which is the bare minimum for stuff on the canvas. In fact, you should derive from GH_DocumentObject as it handles almost all functionality for you. Then create your own attributes and you're done.

I'll upload an example in a bit to show this.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

The attached is a special object that has 4 resizable edges and overridden display+mouse handling. It may be a good starting point for your own type of object.

If you want to keep on using standard GH objects, I think Groups will be more useful than Markups.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Attachments:

If you want to add a specific object to the canvas I think you're better off making a new one

I surmised so, but I wanted a quickfix!

If you want to add an object like Markups, Scribbles and Jumps then you shouldn't implement IGH_ActiveObject

Sure, I wouldn't have had the idea!

I'll upload an example in a bit to show this.

:) thanks!

Markups are fun!

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