Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Artoo on November 06, 2019, 05:58:12 AM

Title: How to access properties of procedural materials
Post by: Artoo on November 06, 2019, 05:58:12 AM
I´ve been experimenting with procedural materials/substances, but I cannot understand how to alter the sliders with PlayMaker in runtime.
Is it even possible?
Title: Re: How to access properties of procedural materials
Post by: jeanfabre on November 08, 2019, 01:53:41 AM
Hi,

 SetProceduralFloat should be the action you need, have you tried it yet?

Bye,

 Jean
Title: Re: How to access properties of procedural materials
Post by: Artoo on November 08, 2019, 06:33:16 AM
Yes, I figured that must be the the one to change the values.
However, I can´t get any changes to appear.

I´ve been trying to adjust the snow cover generator properties of my .sbsar graph,
it works when I manually move the slider, but I cannot figure the way to get it to work with the FSM.

I haven´t found any examples how this is done, so it´s hard for me, this is all new.

I´ll attach a picture of my FSM, how should this be set up for it to work properly?
I´ve tried changing the properties, but no luck.
Also, do I need the "rebuild textures" script for all changes?
Title: Re: How to access properties of procedural materials
Post by: jeanfabre on November 08, 2019, 08:41:26 AM
Hi,

 first can you check if changing the float "Fresh_snow" actually gets reflected in the material itself, do you see the slider at the right spot? then double check that the model implementing that material also has its material with the right value ( maybe it's not)

if it is, then it should work, if not, let me know, I'll try to reproduce locally.

Bye

 Jean