Copy link to clipboard
Copied
I have a custom 'Atlas' node for placing decals or other textures into a single texture and it would be super helpful if it was possible to show the results of a cell's final location and size calculation to use to define the spite coordinates in our game engine. Is there any way to do this? I was hoping it would be possible to set an exposed parameter from a function graph somehow, but haven't had any luck.
If not, it would be very handy to have a way to expose a parameter as readonly (ie a Label) and assign a function to it that would return a value that could be displayed in th UI but never edited. This would also help when debugging other function graphs as I still haven't found a way to easily debug values in one.
Hello,
Unfortunately displaying the values output by nodes in Function graphs directly is a challenging endeavour, and we have no plans to share at this point in time.
You may use the Value Processor node to display an output value in the 2D View and the node thumbnail.
If you need to use a Pixel Processor node, you can encode the output values as 32-bit RGBA pixel values in the output image, display this image in the 2D View then sample its pixel color values using the Information panel in
...Copy link to clipboard
Copied
Hello,
Unfortunately displaying the values output by nodes in Function graphs directly is a challenging endeavour, and we have no plans to share at this point in time.
You may use the Value Processor node to display an output value in the 2D View and the node thumbnail.
If you need to use a Pixel Processor node, you can encode the output values as 32-bit RGBA pixel values in the output image, display this image in the 2D View then sample its pixel color values using the Information panel in the 2D View.
I hope this can help!
Best regards.
Copy link to clipboard
Copied
Thanks Luca! I added a Value Processor node to my Atlas node and added it as an output. So now I can click on that output to get the decal/cell's final x,y and width, height (after cropping, etc).
Copy link to clipboard
Copied
Hello again@DC3D,
Great news! I am glad this was helpful.
Feel free to get back to us if you need further assistance.
Best regards.