Skip to content

Instantly share code, notes, and snippets.

@koenbok
Created February 5, 2016 10:53
Show Gist options
  • Select an option

  • Save koenbok/b5233904027630803ffd to your computer and use it in GitHub Desktop.

Select an option

Save koenbok/b5233904027630803ffd to your computer and use it in GitHub Desktop.
layerA = new Layer
layerB = new Layer
# The old way
layerB.superLayer = layerA
print layerA.subLayers
# The new way
layerB.parent = layerA
print layerA.children
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment