int usd_setrelationshiptargets(int stagehandle, string primpath, string name, string targets)
This function sets the targets in the primitive’s relationship.
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.)
The path to the primitive.
The relationship name.
The the target paths to set the relationship to.
The value of
stagehandle on success or
-1 on failure.
// Set the cube's relationship. usd_setrelationshiptargets(0, "/geo/cube", "new_relation", array("/geo/sphere6", "/geo/sphere7"));