R3LAYLA_Layers
List of Layer objects. Layer defines a project consisting of several sub layers, each managing different type of objects needed to describe a photo realistic scene for modelign and rendering purposes. Sub layers include geometric objects, materials and post effects, to name a few.
To fetch the current project from the layerlist object:
R3OBJ *current;
R3GetAttrs(layerlist,
R3T(R3LAYLA_CurrentLayer, ¤tlayer),
R3TAG_END);
To enumerate all the projects in the program:
int print_project_names(R3OBJ *obj, void *hook_data) {
char *name;
R3GetAttrs(obj, R3T(R3RA_Name, &name), R3TAG_END);
printf("found project %s\n", name);
}
R3Do(layerlist, R3OLAYM_ENUMOBJECTS,
R3T(R3RA_Hook, print_project_names),
R3T(R3RA_HookData, NULL),
R3TAG_END);