COPY PASTE IMAGEs ON GH CANVAS


#1

when making grasshopper definitions and any kind of scripting in general I ended most of the time making useful cad images and/or hand made draft to achieve/conceive the wanted logic…

These images are very useful in order to understand what kind of logic a given script is based on especially when you look at it after some time …let say an image , centain times , says more than a thousand words ( or comments )

I think it would be super useful to have a chance to simply copy-paste these images , when necessary, on the canvasand store them inside the script … this would be pretty much like the next level comment

any chance to see this feature on GH1 ?

many thanks , cheers

Ivan


(David Rutten) #2

At the moment your options are:

  • Drag-Drop an image file onto the canvas. This creates an Image Sampler which only displays a low-res version of the image. It can however be resized.
  • Create an Image Gallery and drag your image(s) into the Local area. Quite a lot of manual steps and the result cannot be resized. It does however show the full-resolution image and can handle more than one.
  • Create a sketch object and import Rhino curves to replace it.

I concur that neither of these options really solve your problem. It sounds like the Image Gallery is closest, but it is cumbersome to use and lacks functionality.

I would say there is no chance of seeing a new feature like this on GH1. It is simply too much work and too unimportant (sorry) to justify sacrificing GH2 development time.


(David Rutten) #3

At the moment your options are:

  • Drag-Drop an image file onto the canvas. This creates an Image Sampler which only displays a low-res version of the image. It can however be resized.
  • Create an Image Gallery and drag your image(s) into the Local area. Quite a lot of manual steps and the result cannot be resized. It does however show the full-resolution image and can handle more than one.
  • Create a sketch object and import Rhino curves to replace it.

I concur that neither of these options really solve your problem. It sounds like the Image Gallery is closest, but it is cumbersome to use and lacks functionality.

I would say there is no chance of seeing a new feature like this on GH1. It is simply too much work and too unimportant (sorry) to justify sacrificing GH2 development time.


#4

HI David and thanks for the explanation… I agree when you say this is not primary but I am sure that one it is available people would use it.
Not a problem , I will keep using comments but i hope to see it in the future GH versions

you know what ? i tried to drag’n drop the image in to the canvas…if the resolution wasn’t that low the image sampler could be a solution to my request…any way to increase resolution ? …is it the image stored in to the GH file ? I tried to save the defintion / close the GH / delete the original image / reopen GH and still can find the image

thanks

Ivan


(David Rutten) #5

No. Unfortunately the graphics platform that GH1 uses is super slow when it comes to drawing textures. The bigger the texture the slower it is. That is why the UI image is so heavily downsampled.

It should be. If the blue floppy disk icon is drawn on top of the image, a copy of it is included in the gh file. It works for the image I just tested. Can you send me the image that isn’t working for you?


#6

David, i am not an expert but i wonder : does the platform slows down only when full size images are visualized on the canvas or is the GH file size increasement due to pasted images the slows down GH ? the question is made cause i wonder if showing just a preview and temporary popup real size image only after clicking the preview could be a solution ?[quote=“DavidRutten, post:5, topic:42514”]
It should be. If the blue floppy disk icon is drawn on top of the image, a copy of it is included in the gh file. It works for the image I just tested. Can you send me the image that isn’t working for you?
[/quote]

Yes David , sorry for the poor explanation…this is the way it works also on my pc

thanks

Ivan


(David Rutten) #7

GDI+ is not hardware accelerated, and drawing a big image (or even a medium sized image at high zoom levels) simply takes a long time. The file size has nothing to do with it, particularly because the data isn’t stored in memory as a *.gh file, that only happens when the data is written to disk.