int usd_setvisible(int stagehandle, string primpath, int flag)
This function sets the primitive’s visibility
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.)
primpath
The path to the primitive.
flag
Non-zero to make the primitive visible or 0 to make it invisible.
Returns
The value of stagehandle
on success or -1
on failure.
Examples
// Set the sphere primitive as visible. usd_setvisible(0, "/geo/sphere", true);
See also | |
usd | |
usd_prim |
|