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

"Visible If" not working

Participant ,
Apr 22, 2023 Apr 22, 2023

Copy link to clipboard

Copied

Hi! People,

There's a boolean input node having indentifer name as "bevel_type"

There's a second input value node.

 

I want input value node to be visible when "bevel_type" is true.

I'm finding such a simple stuff difficult.

I used this as guide:

Visible if: control visibility of inputs, outputs and parameters | Substance 3D Designer (adobe.com)

 

The expression I entered in the "Visible If" of input value node is:

 

input["bevel_type"] == True

input.bevel_type == True

 

A) There's no way to add line_break/ENTER/Return in "Visible If" field as shown in the documentation link above.

B) It's just giving me yellow exclamation.

 

 

TOPICS
Bugs & Crashes , Scripting

Views

509

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

Community Expert , Apr 24, 2023 Apr 24, 2023

Thanks for the screenshot, now I see the difference between what we were doing.

As far as I am aware, Visible If has to reference an input parameter (in the input parameters section) rather than an input value node.

 

Dave

Votes

Translate

Translate
Community Expert ,
Apr 22, 2023 Apr 22, 2023

Copy link to clipboard

Copied

Hi

If the identifier for your Boolean Input parameter is bevel_type You just need

 

input.bevel_type == true

 

Note the spaces before and after == and also lowercase true

 

This looks like a Substance Designer question so I will move the thread to that forum

 

Dave

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
Participant ,
Apr 22, 2023 Apr 22, 2023

Copy link to clipboard

Copied

Hey, Thanks for the quick reply.

I tried:

input.bevel_type == true

and

input["bevel_type"] == true

 

Unfortunately that didn't work.

 

In such problem I don't know what else to check. The identifier exists, the letter case is correct, good syntax.

 

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 Expert ,
Apr 22, 2023 Apr 22, 2023

Copy link to clipboard

Copied

Can you show a screenshot of the input parameter labelling and also the other input visible if entry as below (where it is working here)

2023-04-22_12-19-50.jpg

 

Dave

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
Participant ,
Apr 24, 2023 Apr 24, 2023

Copy link to clipboard

Copied

Here's the screenshot:

I want to control the visibility of two inputs (Bevel In and Bevel Out) using the bevel_type input (boolean type).

Visible if issue.jpgVisible if issue _1.jpg

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 Expert ,
Apr 24, 2023 Apr 24, 2023

Copy link to clipboard

Copied

LATEST

Thanks for the screenshot, now I see the difference between what we were doing.

As far as I am aware, Visible If has to reference an input parameter (in the input parameters section) rather than an input value node.

 

Dave

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