Skip to main content
DC3D
Participant
September 7, 2021
Answered

Display Results of Function Calculation

  • September 7, 2021
  • 1 reply
  • 450 views

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.

This topic has been closed for replies.
Correct answer Luca Giarrizzo

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.

 

1 reply

Luca Giarrizzo
Community Manager
Luca GiarrizzoCommunity ManagerCorrect answer
Community Manager
September 8, 2021

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.

 

Luca Giarrizzo | Quality Engineer - Substance 3D Designer | Adobe
DC3D
DC3DAuthor
Participant
September 8, 2021

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).

Luca Giarrizzo
Community Manager
Community Manager
September 9, 2021

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.

 

Luca Giarrizzo | Quality Engineer - Substance 3D Designer | Adobe