playMaker

Author Topic: Get Fog Color/Density?  (Read 2627 times)

SeanC

  • Junior Playmaker
  • **
  • Posts: 61
Get Fog Color/Density?
« on: September 16, 2013, 02:06:03 PM »
Is there a way to get Fog Color and Density? Since it isn't an object that exists in scene, I'm having trouble seeing how to reference it to get properties.

SeanC

  • Junior Playmaker
  • **
  • Posts: 61
Re: Get Fog Color/Density?
« Reply #1 on: September 16, 2013, 03:46:19 PM »
I tried building an action for this based on some other ones, but admittedly I am not so solid at programming.

Any thoughts?


jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Get Fog Color/Density?
« Reply #2 on: September 17, 2013, 03:06:23 AM »
Hi,

 yes, using "set property" or "get property" actions. simply drag and drop the fog component onto your fsm state and it will ask you if you want to set or get properties, and then you will get a list of all accessible properties, including color and density.

bye,

 Jean

SeanC

  • Junior Playmaker
  • **
  • Posts: 61
Re: Get Fog Color/Density?
« Reply #3 on: September 17, 2013, 09:59:07 PM »
Where can I drag the fog component from? As far as I know, the only way to access Fog is from the Render Settings Menu, which contains no components.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Get Fog Color/Density?
« Reply #4 on: September 18, 2013, 02:55:17 AM »
Hi,

Ah... that fog. I was relating to the global fog you can have as a post effect on camera.

Ok, yes, rendersettings are not yet available as custom actions. [EDIT] THEY ARE ACTUALLY! see next post.

Bye,

 Jean
« Last Edit: September 20, 2013, 03:28:38 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Get Fog Color/Density?
« Reply #5 on: September 20, 2013, 03:28:04 AM »
Hi,

 actually it is! :)

 look for action: SetFogColor, SetFogDensity and EnableFog


Christoph

  • Beta Group
  • Sr. Member
  • *
  • Posts: 254
Re: Get Fog Color/Density?
« Reply #6 on: September 26, 2020, 10:20:32 PM »
Thanks! It's amazing to search for something that has been answered 7 years ago and it still works flawlessly. Cheers!