Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: submono on March 22, 2012, 11:17:43 PM

Title: Set Property color, Playmaker 1.3.2
Post by: submono on March 22, 2012, 11:17:43 PM
Hi everyone,

how can I change the Property "color" of a material using Set Property in Playmaker? There seem to be no input field for Value.

Thanks,
Sven
Title: Re: Set Property color, Playmaker 1.3.2
Post by: jeanfabre on March 23, 2012, 01:24:25 AM
Hi,

Have you tried using the Set Material Color action instead: https://hutonggames.fogbugz.com/default.asp?W380 (https://hutonggames.fogbugz.com/default.asp?W380)

set property action is for "object" variables only for now.

If you are not confortable with the general concept of playmaker, let me know, and I'll detail a lot more with a step by step instruction.

 Bye,

 Jean
Title: Re: Set Property color, Playmaker 1.3.2
Post by: submono on March 23, 2012, 02:18:32 AM
Hi Jean,

thanks for the quick reply! Worked like a charm :) Anyway, will more properties like color finally be implemented in Set Property? Would be nice to have everything in one place.

Best,
Sven
Title: Re: Set Property color, Playmaker 1.3.2
Post by: Alex Chouls on March 25, 2012, 03:34:59 PM
Set Property should already support Color, but right now drilling down to nested properties is a bit of a pain - you have to use a Get Property for each level. Get/Set Property also only recognizes Object variable types (not Material and Texture variables). I hope to make this all a lot easier in an update soon!

EDIT: Actually Set Property doesn't support Color yet! Will add that to the list...
Title: Re: Set Property color, Playmaker 1.3.2
Post by: mlow on August 06, 2012, 07:10:23 PM
I am trying to set property -> color, on an NGUI component.

It works fine if I hard code the color variable in the set property action.
(https://dl.dropbox.com/u/12996303/set_prop_color1.PNG)

However when I try to use my own variable,
(https://dl.dropbox.com/u/12996303/set_prop_color2.PNG)

 I hit play and the color variable I set turns to "none".
(https://dl.dropbox.com/u/12996303/set_prop_color3.PNG)

Which causes the color to be set to black when the actions runs. Very frustrating because it sort-of works, but only hard coded. It is very important to load my own color variable, because I am doing a web application that loads this data from a server...
Title: Re: Set Property color, Playmaker 1.3.2
Post by: mlow on August 08, 2012, 12:30:40 PM
I really hate to bump, but this was buried to second page. I feel this issue needs attention.
Title: Re: Set Property color, Playmaker 1.3.2
Post by: Zyxil on August 16, 2012, 09:47:04 PM
I'm having this same exact issue.   :(

I can set the Color field when running in the editor to the correct variable and it works as it is supposed to.  The field variable is reset when the editor is started up.  It could happen when the Start transition fires on the FSM or earlier.
Title: Re: Set Property color, Playmaker 1.3.2
Post by: derkoi on September 19, 2012, 08:57:04 AM
Same issue here, really need some random colors too. Any fix please?
Title: Re: Set Property color, Playmaker 1.3.2
Post by: Alex Chouls on December 19, 2012, 08:25:28 AM
Just wanted to follow up on this thread. This bug should be fixed in newer versions.