Hello,
Is it possible to create a scribble text or an image with an hiperlink attached to it that so when you click it it opens the link? I heard that you could do that with Human but if possible I would like to avoid plugins
Thanks in advance!
Hello,
Is it possible to create a scribble text or an image with an hiperlink attached to it that so when you click it it opens the link? I heard that you could do that with Human but if possible I would like to avoid plugins
Thanks in advance!
Cool @AndersDeleuran thank you for that, that could solve the issue.
Although what I was thinking of was to create a button in the GH canvas with a python component for example (a rectangle boundary with a text inside) so when clicking the button, it would open the link. The action of clicking the button would be detect with something like this:
def RespondToMouseDown(self,sender,e):
if e.Button == System.Windows.Forms.MouseButtons.Left:
rec = self.ButtonBounds
if rec.Contains(e.CanvasLocation):
MessageBox.Show("The button was clicked", "Button", MessageBoxButtons.OK)
return Grasshopper.GUI.Canvas.GH_ObjectResponse.Handled
return Grasshopper.Kernel.Attributes.GH_ComponentAttributes.RespondToMouseDown(self,sender, e)
I’m not sure how to do that on the canvas, but for a Rhino viewport you could do something like this:
Edit: Here’s a quick implementation, but you can draw text too and add a mouse over/click effect:
I’m using a script component without a button. By default, the component is disabled. To open the link, I need to select the component and enable it.
Woow, very interesting solution! Pretty sure I can implement that in some of the projects I am working on, thanks!
Also very interesting solution @martinsiegrist thanks for sharing that!