Stupid Gaffer Trick

warning

Save your work first. And don’t expand all!

Execute the following via the PythonEditor :

import GafferScene
n = GafferScene.ShaderAssignment()
n["in"]["childNames"].setValue( IECore.InternedStringVectorData( [ 
    "turtles", "all", "the", "way", "down"
] ) )
root.addChild( n )

Then look at the innocent looking ShaderAssignment node in the HierarchyView, and marvel at its recursive uselessness.

Turtles all the way down!

How does this work? Answers on the back of a postcard please…

Leave a Reply