Image sampler / importer improvements

Didn’t find any posts on this subject in the GH2 category, so I thought I’d post it here. Referencing this topic:

It would be nice to have at least the following additions:
Input: file path to image
Output: image pixel dimensions
Right-click menu to set component proportions to same as image proportions

I’m sure that some other improvements have already been suggested or are on the list.

Actually another good thing would be that the IMG Import Image component outputs pixel dimensions - and maybe that making a mesh with the imported image is optional so it doesn’t need to be calculated. In that way, one could use that component as the image importer and get the pixel dimensions directly, and if the Image Sampler had a file input that that it could be connected to, it wouldn’t even necessarily need to output the pixel dimensions.


@Helvetosaur would love those features to be added.

  • Generally having more of the internal component controls exposed as inputs/ output would be great.
  • PSD layer support
  • UDIM support
1 Like

I’d like to make images a data type in their own right, so you can perform all manner of operations on them, including width/height retrieval.


I would have exactly the same requirements. :grinning: The image sampler is such a great component, but these features are really missing. Is there any progress on this topic?

You can find some of these functionalities on Javid plug-in.


Thanks for the tip - I didn’t know that plugin before. From what I can see at first glance it offers everything I need and more. :+1:

Nonetheless its kind of a shame such an important component as the ImageSampler does not get the above mentioned improvements.

@Mahdiyar I have just installed the plugin, but the menu panel in GH has no icons - and also the components have no icons… just a hole where the icon should be. All other installed GH plugins work fine and have icons for the components and menu. What is going wrong here?

Javid is a work in progress plug-in, and unfortunately, it does not have icons yet. We will release another version next week.

Wow, that plugin looks amazing. I don’t think the last update has been uploaded yet as the last version is still from October 20th. I’ll keep an eye out to see when the next update is released as this plugin will probably fix for me what I’ve been looking for!

That said, I came here to place a suggestion for GH2 image sampler, but it seems that Helvetosaur already did that.

What I think is important:

  • Image sampler preload component to input the image by path, that outputs pixel dimensions, allows you to create a point grid, extracts color data, etc. So that the actual image sampler only shows the image and forms the bridge between the point grid and any operations like setting domains and using the graph mapper.

Image selection should be doable as a grafted list as well, so when you input multiple paths (for example for CMYK or RGB separated images), it will process each image as a separate data path. I don’t know if GH2 will allow multidimensional trees in a different way that GH1 does, but I’m assuming it will have a slightly different way of structuring trees and branches allowing for simpler operations on them.

In the end it would also be extremely useful if a component could already separate CMYK and RGB channels and the image sampler being able to run these separate channels all at once with a second grafted tree to manage the settings per channel.

I can’t wait to see what’s going to be improved in GH2 and Rhino 8!