playMaker

Author Topic: Set Property color, Playmaker 1.3.2  (Read 8315 times)

submono

  • Playmaker Newbie
  • *
  • Posts: 2
Set Property color, Playmaker 1.3.2
« 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

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Set Property color, Playmaker 1.3.2
« Reply #1 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

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

submono

  • Playmaker Newbie
  • *
  • Posts: 2
Re: Set Property color, Playmaker 1.3.2
« Reply #2 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
« Last Edit: March 23, 2012, 02:21:06 AM by submono »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3999
  • Official Playmaker Support
    • LinkedIn
Re: Set Property color, Playmaker 1.3.2
« Reply #3 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...
« Last Edit: March 25, 2012, 03:39:29 PM by Alex Chouls »

mlow

  • Playmaker Newbie
  • *
  • Posts: 2
Re: Set Property color, Playmaker 1.3.2
« Reply #4 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.


However when I try to use my own variable,


 I hit play and the color variable I set turns to "none".


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...

mlow

  • Playmaker Newbie
  • *
  • Posts: 2
Re: Set Property color, Playmaker 1.3.2
« Reply #5 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.

Zyxil

  • Playmaker Newbie
  • *
  • Posts: 10
Re: Set Property color, Playmaker 1.3.2
« Reply #6 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.
« Last Edit: August 16, 2012, 09:52:48 PM by Zyxil »

derkoi

  • Full Member
  • ***
  • Posts: 187
Re: Set Property color, Playmaker 1.3.2
« Reply #7 on: September 19, 2012, 08:57:04 AM »
Same issue here, really need some random colors too. Any fix please?

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3999
  • Official Playmaker Support
    • LinkedIn
Re: Set Property color, Playmaker 1.3.2
« Reply #8 on: December 19, 2012, 08:25:28 AM »
Just wanted to follow up on this thread. This bug should be fixed in newer versions.