Skip to content

usd_setcollectionexcludes

Since18.0

int  usd_setcollectionexcludes(int stagehandle, string collectionpath, string excludes[])

This function sets the excludes list on the collection.

stagehandle

A handle to the stage to write to. Currently the only valid value is 0, which means the current stage in a node. (This argument may be used in the future to allow writing to other stages.)

collectionpath

The path to the collection.

excludes

A list of object paths to set as an exclude list on the collection.

Returns

The value of stagehandle on success or -1 on failure.

Examples

examples

// Set the exludes list on the cube's collection.
string collection_path = usd_makecollectionpath(0, "/geo/cube", "some_collection");
usd_setcollectionexcludes(0, collection_path, array("/geo/sphere4", "/geo/sphere5"));