This forum is dedicated to KATANA by The Foundry

 
User avatar
admin
Site Admin
Topic Author
Posts: 5
Joined: Sat Jul 23, 2016 1:18 pm

GafferThree API - basics

Sun Jul 24, 2016 4:29 am

A simple snippet of code allowing you to create a light inside a GafferThree node.

# Get the GafferThree node
gafferThreeNode = NodegraphAPI.GetNode("GafferThree")

# Get the root package
rootPackage = gafferThreeNode.getRootPackage()

# Create a light
lightPackage = rootPackage.createChildPackage("LightPackage", "light")

Who is online

Users browsing this forum: No registered users and 1 guest