playMaker

Author Topic: How to access properties of procedural materials  (Read 190 times)

Artoo

  • Playmaker Newbie
  • *
  • Posts: 6
    • View Profile
How to access properties of procedural materials
« on: November 06, 2019, 03: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?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14684
  • Official Playmaker Support
    • View Profile
Re: How to access properties of procedural materials
« Reply #1 on: November 07, 2019, 11:53:41 PM »
Hi,

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

Bye,

 Jean

Artoo

  • Playmaker Newbie
  • *
  • Posts: 6
    • View Profile
Re: How to access properties of procedural materials
« Reply #2 on: November 08, 2019, 04: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?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14684
  • Official Playmaker Support
    • View Profile
Re: How to access properties of procedural materials
« Reply #3 on: November 08, 2019, 06: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