playMaker

Author Topic: setting the variable of a shader  (Read 2905 times)

nepomuk

  • Playmaker Newbie
  • *
  • Posts: 32
setting the variable of a shader
« on: July 12, 2015, 03:24:09 AM »
hi, i'd like to figure out how to change variables that are not set in the fsm..
i'm pretty new to scripting so i don't know how to write a custom action.

what i would like to do:

i have a asset installed called vaccumshaders and i would like to change a variable.
for example... it's set in the texture shader as VacuumShaders/Adjustments/Diffuse/Hue

is there an easy way i can access and change the variable from a FSM

thanks in advance :)

DarkSoul

  • Playmaker Newbie
  • *
  • Posts: 37
Re: setting the variable of a shader
« Reply #1 on: July 12, 2015, 07:52:24 AM »
Hello ,

You can drag and drop that component into playmaker and use Set Property .

I hope this helps.

nepomuk

  • Playmaker Newbie
  • *
  • Posts: 32
Re: setting the variable of a shader
« Reply #2 on: July 12, 2015, 10:53:08 AM »
i tried it, but there is no way to choose the "hue" property which i want to change..

nepomuk

  • Playmaker Newbie
  • *
  • Posts: 32
Re: setting the variable of a shader
« Reply #3 on: July 13, 2015, 03:44:07 PM »
sorry for the doublepost...
i found out that i have to make the hue variable public.. but where do i have to do this? in the shader script?

DarkSoul

  • Playmaker Newbie
  • *
  • Posts: 37
Re: setting the variable of a shader
« Reply #4 on: July 13, 2015, 04:54:06 PM »
Hello,

Yhea I guess , but it is on the inspector it has to be public [maybe because it is a custom inspector]
Anyway, if you cant read a script and find out how , send it to me .