HDK
|
#include "pxr/pxr.h"
#include "pxr/usd/sdf/declareSpec.h"
#include "pxr/usd/sdf/spec.h"
#include "pxr/usd/sdf/path.h"
#include "pxr/usd/sdf/payload.h"
#include "pxr/usd/sdf/proxyTypes.h"
#include "pxr/usd/sdf/types.h"
#include "pxr/usd/sdf/api.h"
#include "pxr/base/tf/declarePtrs.h"
#include <iosfwd>
#include <map>
#include <string>
#include <vector>
Go to the source code of this file.
Classes | |
class | SdfPrimSpec |
Functions | |
SDF_API SdfPrimSpecHandle | SdfCreatePrimInLayer (const SdfLayerHandle &layer, const SdfPath &primPath) |
SDF_API bool | SdfJustCreatePrimInLayer (const SdfLayerHandle &layer, const SdfPath &primPath) |
SDF_API SdfPrimSpecHandle SdfCreatePrimInLayer | ( | const SdfLayerHandle & | layer, |
const SdfPath & | primPath | ||
) |
Convenience function to create a prim at the given path, and any necessary parent prims, in the given layer.
If a prim already exists at the given path it will be returned unmodified.
The new specs are created with SdfSpecifierOver and an empty type. primPath must be a valid prim path.
Convenience function to create a prim at the given path, and any necessary parent prims, in the given layer.
If a prim already exists at the given path, do nothing and return true.
Any newly created specs have SdfSpecifierOver and an empty type. primPath must be a valid prim path. Return false and issue an error if we fail to author the required scene description.