Author Topic: What is the variable name for global seed?  (Read 192 times)

Hi
Im trying to set the global seed as a parameter with batchtools.sbsrender_render like this:
Code: [Select]
batchtools.sbsrender_render(inputs=_in,
                            input_graph='paper',
                            output_path='D:/Dropbox (Personal)/_Allgoritmic/ATK',
                            set_value=['$outputsize@8,8', 'normal_format@1', 'random_seed@10'],
                            ).wait()
But i cant find the correct variable name. Any help appreciated.

Regards
Bonsak

Nwm. Made a custom input parameter that i referenced in Random Seed :)

-b

Hi Bonsak,

For future record, it's called $randomseed.
You can dump it using

sbsrender info file.sbsar
GRAPH-URL pkg://New_Graph
  INPUT $outputsize INTEGER2
  INPUT $randomseed INTEGER1
  INPUT input IMAGE
  INPUT input_1 IMAGE
  OUTPUT basecolor baseColor
  OUTPUT normal normal
  OUTPUT roughness roughness
  OUTPUT metallic metallic
  OUTPUT height height

Thanks!
It should definitely be added to the docs:
https://support.allegorithmic.com/documentation/sddoc/built-in-variables-143720659.html

Regards
Bonsak

Thanks for pointing it out