• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Display Results of Function Calculation

Community Beginner ,
Sep 07, 2021 Sep 07, 2021

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.

TOPICS
Substance Graph

Views

243

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , Sep 08, 2021 Sep 08, 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

...

Votes

Translate

Translate
Adobe Employee ,
Sep 08, 2021 Sep 08, 2021

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.

 

Luca Giarrizzo | Quality Engineer, 3D & Immersive | Adobe

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 08, 2021 Sep 08, 2021

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Sep 09, 2021 Sep 09, 2021

Copy link to clipboard

Copied

LATEST

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, 3D & Immersive | Adobe

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines