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

How to give each new instance a new random seed?

Explorer ,
Nov 12, 2024 Nov 12, 2024

I make a lot of custom SBSARs to use in Substance Designer and each time I add one I manually change the seed value to make it unique.

I would love each one of my new custom nodes that I add to my graph to have a totally random seed.

 

So far I tried generating a random number using the random function in a value processor but I came up against two problems:
1. I can't figure out how to assign the random number to the node's random seed

2. The random generator is pseudo random ad not truly random so it would be the same value each time.

 

TLDR:

Is there a way to make each new instance automatically use a new random seed number?

 

 

 

TOPICS
How to , Substance Graph
1.3K
Translate
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 , Nov 13, 2024 Nov 13, 2024

Hello,

 

There is currently no way to automatically assign a random value for the random seed of new instance nodes. That would indeed be useful and I have shared that suggestion with the rest of the development team.

 

In version 12.4.0, we have added a button to the 'Random Seed' parameter to quickly generate a random value, although I understand this is still a manual operation for each new node.

 

I appreciate your patience regarding the current limitations of random seed management.

 

Best

...
Translate
Adobe Employee ,
Nov 13, 2024 Nov 13, 2024

Hello,

 

There is currently no way to automatically assign a random value for the random seed of new instance nodes. That would indeed be useful and I have shared that suggestion with the rest of the development team.

 

In version 12.4.0, we have added a button to the 'Random Seed' parameter to quickly generate a random value, although I understand this is still a manual operation for each new node.

 

I appreciate your patience regarding the current limitations of random seed management.

 

Best regards.

Luca Giarrizzo | Quality Engineer, 3D & Immersive | Adobe
Translate
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
Explorer ,
Nov 13, 2024 Nov 13, 2024

Thank you very much Luca. It's good to know that I'm not missing something somwehere.

The generate button is a great step forward.

Translate
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 ,
Nov 13, 2024 Nov 13, 2024
LATEST

Hi
Thinking this through, I think there is a way - but it is a bit clunky.

 

Within the node(s) to be instanced add the following:

a. An integer input node - I've called mine Randomise and labelled it _randomise

b. A short node chain that increments that value. I added 5 as the rounding process sometimes missed single values.

davescm_2-1731497388982.png

 

 

The uniform colour has its grey value output set by this function

davescm_1-1731497317301.png

The value processor has this function

davescm_4-1731497488082.png

 

c. Now you have an incrementing value passed from input to output within the instance it can be used to drive any nodes within the instance which use a random seed. To each, add an input and use that input to drive the random seed value for that node. As an example I have a perlin noise to which I added an input, called #_inRandom, connected to the incrementing seed value

davescm_5-1731497694769.png

 

and then added this function to the Random Seed value for Perlin Noise

davescm_6-1731497792396.png

 

With the instance node set up, you can use it in another graph and chain those input & output values

davescm_7-1731497932000.png

 

It seems to work, although you may need to recompute the node thumbnails to see the effect.

As I said, it is clunky and I would much rather see a switch to use a unique random seed for each instance.

 

Dave

 

Translate
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