Author Topic: [SOLVED] Function attached to TEXT string works on Designer but not on player  (Read 1069 times)

HELP!
This simple node setup works like a charm in designer, but not on player
Its attached to the string of a text. it should display A or B depending on the integer input, but on player It always stays at B (Actually, the input is not shown in player unless its being used somewhere else)
(Player's log throws no errors)
Last Edit: May 13, 2019, 05:31:03 pm

Im attaching an example On how it fails, just try to change the input in designer and then try when exporting as sbsar
Last Edit: April 26, 2019, 02:55:09 pm

Hi Javier,

Thank you for bringing this issue to our attention.

The Substance Designer cooker cannot currently process strings in function graphs' 'if/else' statements, because of a limitation of the Substance Engine. This means only one of the strings will be processed when publishing the SBSAR.

We suggest using a 'Switch' node in the compositing graph instead, and doing the integer comparison in it. See example below:



On the right is the function graph for the 'Switch Grayscale' node.

We hope this is helpful. Please get back to us if you need further assistance.


Best regards,

Luca Giarrizzo
Last Edit: April 29, 2019, 11:28:25 am
QA Analyst
Substance Designer Team