playMaker

Author Topic: Recursive Set Layer  (Read 2840 times)

WitchTheWicked

  • Playmaker Newbie
  • *
  • Posts: 8
    • View Profile
Recursive Set Layer
« on: January 03, 2012, 05: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, 11:47:06 AM by jeanfabre »

mrbdrm

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

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 13137
  • Official Playmaker Support
    • View Profile
Re: Recursive Set Layer
« Reply #2 on: June 26, 2012, 02: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" ?