Skip to content

Instantly share code, notes, and snippets.

View Squid3d's full-sized avatar

Jon Swindells Squid3d

View GitHub Profile
@Squid3d
Squid3d / splice_lookat_constraint.kl
Created March 10, 2015 05:39
Simple lookat constraint example for Splice/Maya - used to illustrate rather than edjumakate
/*
Classic gl LookAt
aims down the z axis at the lookAt object
*/
// create up and lookAt locators
// create a cube at the origin
// add a spliceMayaNode
// add inputs:
// lookAt Mat44
@Squid3d
Squid3d / Walking_with_yield.py
Created March 5, 2015 03:46
using yield to iterate c4d object/tag and materials
import c4d
def walk_objects(obj):
if obj:
yield obj
for x in walk_objects(obj.GetDown()): # happily fail on tags and materials
yield x
for x in walk_objects(obj.GetNext()):
yield x