Rendering Instances

Note:  The scene graph location of the instance source is wrapped in a Katana procedural (• katana). This is a render agnostic workflow that will also work with Prman and Arnold.

The workflow associated with your preferred renderer may be more efficient. Check their documentation for details.

local source = "/root/world/geo/instanceGroup"

local attributeName = "geometry.instanceSource"

local attributeValue = StringAttribute(source)

Interface.SetAttr(attributeName, attributeValue)