Foreground Shader selection from tsxAPI?

Smart people ~ Great Scripts
Post Reply
User avatar
borgcone
Chief Petty Officer
Posts: 115
Joined: 06 May 2018, 21:09
Type the number ten into the box: 10
Location: Japan, or sometimes behind a borg cube

Foreground Shader selection from tsxAPI?

Post by borgcone »

In the Model side of tS7.x or tS5/6, how can we switch the mode of "Foreground Effects Shader" (e.g. to "Simple Volumetric") from a plugin?

After I selected the mode by clicking the button, I can get/set the parameter value using tsxScene[GS]etShaderXXXXXX() API functions. But I would like to manipulate the mode from my model-side plugin instead of mouse-click.
borgcone ... or 3DfromNULL at https://biglode.com/ptsxpy
Post Reply