Pymel / Python Coding

3delight geo attributes

# create geo attribute
string $dga_node = DGA_create();
DGA_visibilityTransmissionCreateAttr($dga_node);
DGA_visibleToCameraCreateAttr($dga_node);
DGA_geometryCurves($dga_node);
setAttr ($dga_node + “.visibilityTransmission”) 0; //opaque
string $sl[] = ls -sl -l;
DL_setObjectAttrib($dga_node, “delightGeoAttribs”, $sl);

# change property of existing geo attribute
string $dga_node = “delightGeoAttribs2”;
setAttr ($dga_node + “.visibilityTransmission”) 1; //opaque

For creating mask set per selection:

Post navigation

Comments are closed.