I need to internalize an image in GH via “file path” component, but it is not possibile in the menu option.
Anyone know a way to get it?
Thank you
Hi @fn_a ,
Are you trying to internalize the file path itself as in the string text representation of the file path or the image as a data input?
Otherwise, in image settings (right click the image sampler component → settings) you can choose your file path and then ensure that “Save in file” is checked.
Hope that helps!
hi
you can try --serialize image to string-- from human plugin, than create set of the result and internalize data in create set component
serialize.gh (10.6 KB)
thank you @michaelvollrath,
I wish the image to be embedded in the gh definition and not depend of path. So It will be possibile to share the gh definition without loss of images
Thank you again
Understood, thanks for clarifying. Have a look at this: Custom Sprite Component - #3 by AndersDeleuran
You can store the image as a text string and load the string as a bitmap in Python