playMaker

Author Topic: Recursive Set Layer  (Read 6395 times)

WitchTheWicked

  • Playmaker Newbie
  • *
  • Posts: 8
Recursive Set Layer
« on: January 03, 2012, 07:41:34 PM »
This script sets all the children of the parent layer to a layer value.
If you want me to make this truly recursive (where it calls on children's children then reply and I will do so)

I just wanted to give back to playmaker I felt like  a huge noob but because of alec and jane's help I am an expert at PlayMaker (atleast comparatively xD)

Dedicated to jane and alec:
Credit : Witch (coder)

[EDIT] Attached a new version of it that properly affect ALL childrens, not just the firsts.
« Last Edit: June 27, 2013, 02:47:06 PM by jeanfabre »

mrbdrm

  • Playmaker Newbie
  • *
  • Posts: 39
Re: Recursive Set Layer
« Reply #1 on: June 26, 2012, 05:00:46 AM »
Thank you
i just needed this and its working nice :)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Recursive Set Layer
« Reply #2 on: June 26, 2012, 05:29:00 AM »
Hi,

 great! One quick note, you can remove all together OnUpdate() as you do nothing, you don't have to implement it if you don't use it.

 bye,

 Jean

ps: is alec and Jane actually "Alex" and "Jean" ?