跳转到内容

usd_addcollectionexclude

版本18.0

int  usd_addcollectionexclude(int stagehandle, string collectionpath, string path)

此函数将对象从集合中排除。通常通过向集合的排除列表添加显式路径实现,但如果足够的话,也可能只是从集合的包含列表中移除路径。

stagehandle

要写入的舞台句柄。目前唯一有效值是0,表示节点中的当前舞台。(此参数未来可能用于支持写入其他舞台。)

collectionpath

集合的路径。

path

对象的路径。例如:图元、属性或关系。

返回值

成功时返回stagehandle的值,失败时返回-1

示例

// 从立方体的集合中排除sphere3
string collection_path = usd_makecollectionpath(0, "/geo/cube", "some_collection");
usd_addcollectionexclude(0, collection_path, "/geo/sphere3");