Hello, I'm trying to add a transformation matrix as an attribute onto a primitive (a locator) I create in a SourceGeo node. I'm trying to be able to access the world space transform for the locator so I can access it in a python callback. Something like this
geoNode = nuke.selectedNode() geometryList = geoNode['geo_select'].getGeometry() for geom in geometryList: print geom.transform() Is setting an attribute on the object in the SourceGeo node the correct way to populate that? Here*'s *the code from the SourceGeo implementation Attribute* matrix = out.writable_attribute(obj, Group_Object, "transform", MATRIX4_ATTRIB); assert(matrix != NULL); if (matrix != NULL) { matrix->matrix4(0).makeIdentity(); matrix->matrix4(0).translate(123.f, 456.f); } I've also tried setting the attribute for the Group_Points and Group_Primitives but the transform from the geoInfo is always identity. Thanks, Eric
_______________________________________________ Nuke-dev mailing list Nuke-dev@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev