This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |