Hello Everyone,
I loaded in my dynamo script an image in the properties.
I can’t get it in my script.
Any ideas on how to do so?
Hello Everyone,
I loaded in my dynamo script an image in the properties.
I can’t get it in my script.
Any ideas on how to do so?
You want test.png which is wired into the multiple input form as the property image, or you want the image from the graph properties in the multiple input form?
Hi Jacob,
Sorry for my english, I want the image from the graph properties in the multiple input form.
When I open the .dyn with Notepad, I can find the “Thumbnail” who is the image reference.
Right - so you’d need to write custom code to:
Image Data
node as a streamImage Data
nodeIf this sounds like a lot, because it is. The Datashapes tool isn’t built for using that data but a path on disc. Why why not use the path on disc instead?
Yes, it’s too complicated for me.
The goal was to share the. dyn file with another user and thus keep it in the image in the dynamo script.
The path is not available to other users, they will not have the image.
The only solution I could find to import an image into a script was to go through the properties.
Ok - if you load an image into the Dynamo graph (not a file path), does the Datashapes node work? If not, you’ll have to recode the Datashapes UI to start with, which won’t be easy.
If rebuilding the UI feels beyond your skill set, then moving the image to the same path as the dyn providing both files, or providing a web link instead of a local disc one will almost certainly be easier.
If you’re up for it, try the directions above.
You’re right, “Image data” requires a path and I don’t see myself changing “multipleinputform++”.
I noticed that if the image is placed in the same folder as the dynamo, the path is a “relative path” (as on autocad relative/absolut path).
So I share the dynamo file and the image in a .zip.
Thanks Jacob