playMaker

Author Topic: Connect the material to another random material[SOLVED]  (Read 1986 times)

pharrr

  • Playmaker Newbie
  • *
  • Posts: 7
Connect the material to another random material[SOLVED]
« on: September 03, 2017, 05:50:18 PM »
Hello,
The playmaker has an object (face) that I create with set material random. How can I connect another object (hands) in the same way? I mean, can I link the "hands" object to the randomly changing "face" object material? or is there another solution?

« Last Edit: September 11, 2017, 02:16:39 AM by jeanfabre »

nFighter

  • Beta Group
  • Full Member
  • *
  • Posts: 174
    • multiplayer adult fighting
Re: Connect the material to another random material
« Reply #1 on: September 03, 2017, 11:12:45 PM »
I read couple of times, but still don't understand what are you doing. What does it mean „playmaker has an object“, what is „connect object to material“, what is „connect material to material“? Can you explain clearly, what exactly are you trying to make?
indie developer of multiplayer adult fighting
http://nakedfighter3d.com

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Connect the material to another random material
« Reply #2 on: September 04, 2017, 03:06:30 AM »
Hi,

 it seems to me you need to save your materials and objects into PlayMaker variables so that you can access them later or on other fsm.

 Bye,

 Jean

pharrr

  • Playmaker Newbie
  • *
  • Posts: 7
Re: Connect the material to another random material
« Reply #3 on: September 04, 2017, 02:01:24 PM »
I think I could not tell you well. I am a designer and a very new asset for me.
There is an object that changes materiali random as in the picture.
I could not change another objenin material at the same time.
The UVs are the same but the objects are different (eg face2).
I want Face2 to change in the same way when Face changes material.

I think the problem is random change of materialin.
Jean; Is there a simple lesson on the subject? I could not find.
sorry for the bad english.
Thanks

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Connect the material to another random material
« Reply #4 on: September 04, 2017, 10:23:48 PM »
Hi,
So you want both faces to get the same material?

Maybe you can place the materials in an array variable then use "array get random"
and store the value in a material variable
then use "Set Material" for each face

pharrr

  • Playmaker Newbie
  • *
  • Posts: 7
Re: Connect the material to another random material
« Reply #5 on: September 09, 2017, 05:24:51 PM »


Thanks everyone.
it was difficult to solve but I did it with the method you showed.
thanks a lot djaydino :D