HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
XUSD_Utils.h
Go to the documentation of this file.
1 /*
2  * Copyright 2019 Side Effects Software Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17 
18 #ifndef __XUSD_Utils_h__
19 #define __XUSD_Utils_h__
20 
21 #include "HUSD_API.h"
22 #include "HUSD_DataHandle.h"
23 #include "HUSD_Utils.h"
24 #include "XUSD_PathSet.h"
25 #include <OP/OP_ItemId.h>
26 #include <UT/UT_StringHolder.h>
27 #include <UT/UT_StringArray.h>
28 #include <UT/UT_StringMap.h>
29 #include <UT/UT_StringMMPattern.h>
30 #include <UT/UT_Map.h>
31 #include <pxr/base/vt/value.h>
32 #include <pxr/usd/sdf/fileFormat.h>
33 #include <pxr/usd/sdf/layer.h>
35 #include <pxr/usd/sdf/path.h>
36 #include <pxr/usd/usd/prim.h>
37 #include <pxr/usd/usd/stage.h>
38 #include <pxr/usd/usd/timeCode.h>
42 
43 class HUSD_LayerOffset;
44 class HUSD_LoadMasks;
45 class HUSD_PathSet;
46 class HUSD_TimeCode;
47 class UT_OptionEntry;
48 class UT_JSONWriter;
49 
51 
52 class UsdGeomPrimvar;
53 class UsdGeomXformable;
54 class UsdGeomXformCache;
55 class XUSD_Data;
57 
59 {
60 public:
62  { }
64  { }
65 
66  virtual int getPriority() const = 0;
67  virtual UsdStageRefPtr createStage(UsdStage::InitialLoadSet loadset,
68  int nodeid) const = 0;
69 };
70 
71 extern "C" {
74 };
75 
79 };
80 
82 {
83 public:
84  explicit XUSD_SavePathInfo()
86  myNodeBasedPath(false),
87  myTimeDependent(false),
89  { }
90  explicit XUSD_SavePathInfo(const UT_StringHolder &finalpath)
92  myFinalPath(finalpath),
93  myOriginalPath(finalpath),
94  myNodeBasedPath(false),
95  myTimeDependent(false),
97  { }
98  explicit XUSD_SavePathInfo(const UT_StringHolder &finalpath,
99  const UT_StringHolder &originalpath,
100  XUSD_ExternalRefType reference_type,
101  bool node_based_path,
102  bool time_dependent)
103  : myFinalPath(finalpath),
104  myOriginalPath(originalpath),
105  myReferenceType(reference_type),
106  myNodeBasedPath(node_based_path),
107  myTimeDependent(time_dependent),
109  { }
110 
117 };
118 
120 {
121 public:
124 };
125 
132 
133 // Helper function to convert a node id directly to a node path, and return
134 // true if the conversion was successful.
135 HUSD_API bool HUSDgetNodePath(int nodeid, UT_StringHolder &nodepath);
136 // Similar to the above method, but for the dedicated purpose of returning a
137 // std::string to pass to HUSDcreateAnonymousLayer.
139 
151 
160 
162 HUSD_API bool HUSDisDerivedType(const UsdPrim &prim,
163  const TfType &base_type);
164 
166 HUSD_API bool HUSDisPrimEditable(const UsdPrim &prim);
167 HUSD_API bool HUSDisPrimSelectable(const UsdPrim &prim,
168  UT_Map<HUSD_Path, bool> *cache = nullptr);
169 HUSD_API bool HUSDisPrimHiddenInUi(const UsdPrim &prim);
170 
171 // Path conversion functions.
176 
177 // Timecode conversion functions.
181  const HUSD_TimeCode &timecode);
183  const HUSD_TimeCode &timecode,
184  const UsdAttribute &attr);
186  const HUSD_TimeCode &timecode,
187  const UsdAttribute &attr);
188 
189 // Layer offset conversion.
191 HUSDgetSdfLayerOffset(const HUSD_LayerOffset &layeroffset);
193 HUSDgetLayerOffset(const SdfLayerOffset &layeroffset);
194 
195 // Other functions to convert from HUSD classes to USD equivalents.
199 HUSDgetUsdListPosition(const UT_StringRef &editopstr);
205 HUSDgetSdfSpecifier(const UT_StringRef &specifier, bool *valid = nullptr);
206 
207 // Determine if a layer comes from a SOP or not.
208 HUSD_API bool
209 HUSDisSopLayer(const std::string &identifier);
210 HUSD_API bool
211 HUSDisSopLayer(const SdfLayerHandle &layer);
212 
213 // Determine if a layer was created by LOPs or not.
214 HUSD_API bool
215 HUSDisLopLayer(const std::string &identifier);
216 HUSD_API bool
217 HUSDisLopLayer(const SdfLayerHandle &layer);
218 
219 // Determine if the specified layer should be saved to disk when saving a
220 // LOP network which sublayers or references this layer.
221 HUSD_API bool
222 HUSDshouldSaveLayerToDisk(const SdfLayerHandle &layer);
223 
224 // Figures out from the layer metadata where the layer should be saved. This
225 // method only works on layers that return true from HUSDshouldSaveLayerToDisk.
227 HUSDgetLayerSaveLocation(const SdfLayerHandle &layer,
228  bool *using_node_path = nullptr);
229 
230 // Get (creating if requested) the special prim that gets put on LOP layers
231 // to hold special layer information (save path, creator node, editor nodes,
232 // etc.) We store this on the custom data of a dedicated prim instead of on
233 // the layer root because custom data on the layer root can cause a whole lot
234 // of recomposition.
235 HUSD_API SdfPrimSpecHandle
236 HUSDgetLayerInfoPrim(const SdfLayerHandle &layer, bool create);
237 
238 // Get or set the save path custom data on a layer. Used by the above
239 // HUSDgetLayerSaveLocation as one of the methods to determine where a layer
240 // should be saved.
241 HUSD_API void
242 HUSDsetSavePath(const SdfLayerHandle &layer,
243  const UT_StringRef &savepath,
244  bool savepath_is_time_dependent,
245  const UT_StringRef &overrides_savepath = UT_StringRef());
246 HUSD_API bool
247 HUSDgetSavePath(const SdfLayerHandle &layer,
248  std::string &savepath);
249 HUSD_API bool
250 HUSDgetOverrideSavePath(const SdfLayerHandle &layer,
251  std::string &savepath);
252 HUSD_API bool
253 HUSDgetSavePathIsTimeDependent(const SdfLayerHandle &layer);
254 
255 // Add locked geos for volume file paths listed on the HoudiniLayerInfo.
256 HUSD_API void
258  const SdfLayerRefPtr &layer);
259 HUSD_API void
261  const SdfLayerRefPtr &layer);
262 
263 // Get or set the save control token which modified how the USD ROP treats
264 // this layer when it is being saved with various options.
265 HUSD_API void
266 HUSDsetSaveControl(const SdfLayerHandle &layer,
267  const UT_StringRef &savecontrol);
268 HUSD_API bool
269 HUSDgetSaveControl(const SdfLayerHandle &layer,
270  std::string &savecontrol);
271 
272 HUSD_API void
273 HUSDsetCreatorNode(const SdfLayerHandle &layer, int node_id);
274 HUSD_API bool
275 HUSDgetCreatorNode(const SdfLayerHandle &layer, std::string &nodepath);
276 
277 HUSD_API void
278 HUSDsetSourceNode(const UsdPrim &prim, int node_id);
279 
280 HUSD_API void
281 HUSDclearEditorNodes(const SdfLayerHandle &layer);
282 HUSD_API void
283 HUSDaddEditorNode(const SdfLayerHandle &layer, int node_id);
284 
285 // Set the list of SdfPaths of all solo'ed lights. This information is stored
286 // as custom data on the HoudiniLayerInfo prim. These methods should only be
287 // used by HUSD_Overrides.
288 HUSD_API void
289 HUSDsetSoloLightPaths(const SdfLayerHandle &layer,
290  const HUSD_PathSet &paths);
291 HUSD_API bool
292 HUSDgetSoloLightPaths(const SdfLayerHandle &layer,
293  HUSD_PathSet &paths);
294 
295 // Warning: this function can traverse the stage, and so can be quite expensive.
296 // It looks for any light prim that is visible at the specified time code.
297 HUSD_API bool
298 HUSDhasAnyVisibleLights(const UsdStageRefPtr &stage, const HUSD_TimeCode &tc);
299 
300 // Set the list of SdfPaths of all solo'ed geometry. This information is stored
301 // as custom data on the HoudiniLayerInfo prim. These methods should only be
302 // used by HUSD_Overrides.
303 HUSD_API void
304 HUSDsetSoloGeometryPaths(const SdfLayerHandle &layer,
305  const HUSD_PathSet &paths);
306 HUSD_API bool
307 HUSDgetSoloGeometryPaths(const SdfLayerHandle &layer,
308  HUSD_PathSet &paths);
309 
310 // Get or set a flag on a layer that causes it to be treated as a SOP layer
311 // for the sake of flattening operations (which can optionally flatten SOP
312 // layers along with implicit layers).
313 HUSD_API void
314 HUSDsetTreatAsSopLayer(const SdfLayerHandle &layer, bool treatassoplayer);
315 HUSD_API bool
316 HUSDgetTreatAsSopLayer(const SdfLayerHandle &layer);
317 
318 // Set the Editor node for a specific USD primitive. This is stored as custom
319 // data on the primitive, and indicates the node that last modified this
320 // primitive, and so the node that we should use for any future requests to
321 // edit the prim.
322 HUSD_API void
323 HUSDaddPrimEditorNodeId(const UsdPrim &prim, int node_id);
324 HUSD_API void
325 HUSDaddPrimEditorNodeId(const SdfPrimSpecHandle &prim, int node_id);
326 HUSD_API void
328 HUSD_API void
329 HUSDclearPrimEditorNodeIds(const SdfPrimSpecHandle &prim);
330 HUSD_API void
331 HUSDaddPropertyEditorNodeId(const UsdProperty &property, int nodeid);
332 HUSD_API void
334 
335 HUSD_API void
337 
338 HUSD_API void
339 HUSDclearDataId(const UsdAttribute &attr);
340 
342 HUSDgetParentKind(const TfToken &kind);
343 
344 // Test if a prim and all existing ancestors of the provided path are active.
345 // If the ancestors don't exist at all, that is okay too. This test is primarily
346 // for use by HUSDcreatePrimInLayer which can still create the primitive
347 // in the active layer, but we don't actually want it to. Note that path
348 // must be an absolute SdfPath or this function will return false.
349 HUSD_API bool
351  const SdfPath &path);
352 
353 // Create a new primitive in the specified layer. The stage parameter may or
354 // may not include the layer. It is used only to look up any existing prims
355 // so we know which ancestors of the new prim should be defined and which
356 // should simply be over prims. If the requested prim already exists on the
357 // stage, this function does nothing.
358 HUSD_API SdfPrimSpecHandle
360  const SdfLayerHandle &layer,
361  const SdfPath &path,
362  const TfToken &kind,
363  SdfSpecifier specifier,
364  SdfSpecifier parent_prims_specifier,
365  const std::string &parent_prims_type);
366 
367 HUSD_API bool
368 HUSDcopySpec(const SdfLayerHandle &srclayer,
369  const SdfPath &srcpath,
370  const SdfLayerHandle &destlayer,
371  const SdfPath &destath,
372  const SdfPath &srcroot = SdfPath(),
373  const SdfPath &destroot = SdfPath(),
374  const fpreal frameoffset = 0,
375  const fpreal frameratescale = 1);
376 
377 // Wrapper around UsdUtilsModifyAssetPaths which restores the layer offsets of
378 // sublayers after updating the asset paths. The core function clears the layer
379 // offset of any sublayer path that gets updated.
380 HUSD_API void
381 HUSDmodifyAssetPaths(const SdfLayerHandle &layer,
382  const UsdUtilsModifyAssetPathFn &modifyFn);
383 
384 // This function duplicates the functionality of
385 // SdfLayer::UpdateExternalRefernce, but can retarget a bunch of references
386 // with a single method call, and thus a single traversal.
387 HUSD_API bool
388 HUSDupdateExternalReferences(const SdfLayerHandle &layer,
389  const std::map<std::string, std::string> &pathmap);
390 
391 // Calls SdfLayer::GetExternalReferences, but also gathers asset paths from
392 // clips defined on the layer.
393 HUSD_API std::map<std::string, XUSD_ExternalRefType>
395 
396 // Utility function used for stitching stages together and saving them.
397 HUSD_API void
399  XUSD_IdentifierToReferenceInfoMap &referenceinfomap,
400  bool recursive,
401  bool include_placeholders = false);
402 
403 // Calls the USD stitch function but with a callback that looks for SOP data
404 // ids on the attributes to avoid creating duplicate time samples.
405 HUSD_API void
406 HUSDstitchLayers(const SdfLayerHandle &strongLayer,
407  const SdfLayerHandle &weakLayer,
408  HUSD_PathSet *varyingDefaultPaths = nullptr);
409 // Stitch two stages together by stitching together their "corresponding"
410 // layers, as determined by the requested save paths for each layer.
411 HUSD_API bool
413  const UsdStageRefPtr &dest,
414  const UsdTimeCode &timecode,
415  XUSD_LayerSet &held_layers,
416  bool force_notifiable_file_format,
417  bool set_layer_override_save_paths,
418  XUSD_ExistenceTracker *existence_tracker,
419  HUSD_PathSet *varying_default_paths = nullptr);
420 
421 // This function returns the identifier that should be passed to
422 // UsdStage::CreateInMemory when creating a stage for use in a LOP
423 // network. This identifier is important as it allows Houdini to
424 // recognize the stage root layer as having been created by LOPs.
425 HUSD_API const std::string &
427 
428 // Create a new in-memory stage. Use this method instead of calling
429 // UsdStage::CreateInMemory directly, as we want to configure the stage
430 // with a reasonable identifier, and a path resolver context. The first
431 // version only sets the payload loading option, which must be set when
432 // the stage is constructed. The second version sets the payload loading
433 // option, the stage population maks, and the layer muting based on the
434 // values set in the provided load masks object.
435 HUSD_API UsdStageRefPtr
437  const UsdStageWeakPtr &context_stage = UsdStageWeakPtr(),
438  int resolver_context_nodeid = OP_INVALID_ITEM_ID,
439  const ArResolverContext *resolver_context = nullptr);
440 HUSD_API UsdStageRefPtr
441 HUSDcreateStageInMemory(const HUSD_LoadMasks *load_masks,
442  const UsdStageWeakPtr &context_stage = UsdStageWeakPtr(),
443  int resolver_context_nodeid = OP_INVALID_ITEM_ID,
444  const ArResolverContext *resolver_context = nullptr);
445 HUSD_API UsdStageRefPtr
447  const HUSD_LoadMasks *load_masks,
448  const UsdStageWeakPtr &context_stage);
449 
450 // Copies meters per unit, up axis, fps, and tcps from the stage's root
451 // layer onto the supplied layer. New sublayers added to a stage should
452 // match these stage settings to avoid unintended mismatches for these
453 // critical setting. The tcps in particular can actually affect composition,
454 // and so matching the stage value (at least as a default) is extremely
455 // important.
456 HUSD_API void
458  const SdfLayerHandle &src);
459 
460 // Create a new anonymous layer. Use this method instead of calling
461 // SdfLayer::CreateAnonymous directly, as we want to configure the layer
462 // with root prim data from a source layer.
465  const SdfLayerHandle &context_layer = SdfLayerHandle(),
466  const std::string &tag = std::string());
467 
468 // Create a new anonymous layer that is a copy of the provided source layer.
469 // If the source layer is not anonymous, update any references to additional
470 // USD or asset files by making all paths absolute.
473  const std::string &tag = std::string());
474 
480 };
481 
482 // Combine layers together based on some options and custom data set on each
483 // layer in the stack (or referenced by a layer in the stack).
486  int flatten_flags,
487  SdfLayerRefPtrVector &explicit_layers);
488 
489 // Combine all layers in the stack by calling the USD flatten layers method.
491 HUSDflattenLayers(const UsdStageWeakPtr &stage);
492 
493 // Check if the supplied layer is completely devoid of any useful information.
494 // This includes both primitives and layer level metadata. However the presence
495 // of only a HoudiniLayerInfo prim may still indicate an "empty" layer if it
496 // only contains creator node information.
497 HUSD_API bool
498 HUSDisLayerEmpty(const SdfLayerHandle &layer,
499  const UsdStageRefPtr &compare_stage_root_prim = UsdStageRefPtr(),
500  bool ignore_sublayers = false);
501 // Check if the supplied layer is a placeholder layer.
502 HUSD_API bool
503 HUSDisLayerPlaceholder(const SdfLayerHandle &layer);
504 // As above, but takes an identifier, which is used to find the layer handle.
505 HUSD_API bool
506 HUSDisLayerPlaceholder(const std::string &identifier);
507 
508 // Test if a string is a stage variable expression. Optionally try to parse
509 // the expression, and raise an error if it is an invalid expression.
510 HUSD_API bool
512  bool check_for_errors);
513 
514 // Return the SdfPath that should be passed to create a reference to the
515 // specified layer. This gives priority to any passed in ref prim path
516 // string, then the layer's default prim (if one is set), then looks at
517 // the layer root prims and picks the first geometry primitive, or the
518 // first primitive if there are no geometry primitives. Raises an warning
519 // if it picks a primitive, but there are other primitives.
521 HUSDgetBestRefPrimPath(const UT_StringRef &reffilepath,
523  const UT_StringRef &refprimpath,
524  UsdStageRefPtr &stage);
525 HUSD_API void
526 HUSDclearBestRefPathCache(const std::string &layeridentifier = std::string());
527 
528 // Functions for checking the amount of time sampling of an attribute/xfrom:
534 HUSDgetLocalTransformTimeSampling(const UsdPrim &pr, bool* resets = nullptr);
537 
538 // Conveninece methods for updating the given time sampling.
539 HUSD_API void
541  HUSD_TimeSampling new_sampling );
542 HUSD_API void
544  const UsdAttribute &attrib);
545 HUSD_API void
547  const UsdGeomPrimvar &primvar);
548 HUSD_API void
550  const UsdPrim &prim);
551 HUSD_API void
553  const UsdPrim &prim);
554 
555 // Returns ture if an attribute (or any aspect of a local transform)
556 // has more than 1 time sample.
557 HUSD_API bool
559 HUSD_API bool
561 
562 // Converts a UT_Option into a VtValue.
564 
565 // Takes a set of paths, and compares them to a stage. In any case where all
566 // the children of a prim are in the set, remove the children, and add the
567 // parent prim instead. This finds the smallest possible set of prims on which
568 // to set an inheritable attribute such that it will affect the original set
569 // of paths. The "skip_point_instancers" flag can be set to true if point
570 // instancers should not be allowed to combine with its siblings, for cases
571 // where the point instancer instances need to be treated individually.
572 HUSD_API void
574  bool skip_point_instancers,
575  const UsdStageRefPtr &stage,
576  XUSD_PathSet &paths);
577 // Takes a set of paths, and compares them to a stage. In any case where all
578 // the children of a prim are in the set, remove that prim from the set,
579 // leaving only the children. This eliminates redundant parent entries in
580 // the set which are already covered by having all the children in the set.
581 HUSD_API void
583  const UsdStageRefPtr &stage,
584  XUSD_PathSet &paths);
585 
586 // Generates a unique suffix (stored in the `suffix` parameter) that can be used
587 // as the `opSuffix` argument to `UsdGeomXformable::AddTransformOp()`.
588 //
589 // If `test_base_xform` is `true` then there will be a first test to see if it
590 // would be valid to call `AddTransformOp` with no suffix (and, if so, `suffix`
591 // will be cleared to indicate this).
592 //
593 // In the above, "unique" is defined as "there is no existing attribute on the
594 // prim that has a matching name" and, thus, there is no risk of clobbering
595 // existing data". Note that this is different than a definition that says
596 // "there is no existing entry in the xformOpOrder list that has a matching name"
597 // (which would allow for the possiblity of attribute reuse).
598 HUSD_API void
600  UT_StringHolder &suffix,
601  const UsdGeomXformable &xformable,
603  bool test_base_xform = false);
604 
605 // Convert a UT map of strings to strings into an
606 // SdfFileFormat::FileFormatArguments equivalent. One trick here is that any
607 // arguments with "/"s in them will have all multi-slash sequences collapsed
608 // to a single slash. This is required so that as a layer identifier gets
609 // created from the FileFormatArguments, and the resulting identifier gets
610 // passed through the ArResolver's URI handling, then back into a
611 // FileFormatArguments structure, the argument values never change. The Ar
612 // library URI parser splits the whole identifier on "/"s, and then rebuilds
613 // the identifier from the components, putting only a single slash between
614 // each component.
615 HUSD_API void
617  const UT_StringMap<UT_StringHolder> &ut_args,
619 
620 // Caclculate the time sampling of the bounding box of a prim. This can be
621 // either the world space bounding box (which takes ancestor xforms into
622 // account), or local space bounds, which ignore ancestor prims. The former
623 // test is useful to know if two prim bounding boxes have potentially
624 // animated overlaping. The latter is useful when we are interested in
625 // whether the extentsHint attribute of a prim need to be time varying.
627 HUSDgetBoundsTimeSampling(const UsdPrim& prim, bool world_space_bounds);
628 
629 // Convert a VtDictionary to a UT_Options
630 HUSD_API bool
631 HUSDconvertDictionary(UT_Options &options, const VtDictionary &dict,
632  const UT_StringMap<UT_StringHolder> *aliases = nullptr);
633 // Save out a VtDictionary as JSON.
634 HUSD_API bool
636  const UT_StringMap<UT_StringHolder> *aliases = nullptr);
637 // Save a single VtValue as JSON.
638 HUSD_API bool
640 
641 // Create a PcpVariantSelectionMap from an equivalent UT data structure.
642 HUSD_API void
644  const UT_StringMap<UT_StringArray> &utfallbacks,
645  PcpVariantFallbackMap &fallbacks);
646 // Create a UT data structure from an equivalent PcpVariantSelectionMap.
647 HUSD_API void
649  const PcpVariantFallbackMap &fallbacks,
650  UT_StringMap<UT_StringArray> &utfallbacks);
651 
653 
654 #endif
655 
HUSD_API UsdTimeCode HUSDgetNonDefaultUsdTimeCode(const HUSD_TimeCode &timecode)
HUSD_API const SdfPath & HUSDgetHoudiniLayerInfoSdfPath()
HUSD_API UsdStageRefPtr HUSDcreateStageInMemory(UsdStage::InitialLoadSet load, const UsdStageWeakPtr &context_stage=UsdStageWeakPtr(), int resolver_context_nodeid=OP_INVALID_ITEM_ID, const ArResolverContext *resolver_context=nullptr)
HUSD_API void HUSDaddEditorNode(const SdfLayerHandle &layer, int node_id)
HUSD_API const TfToken & HUSDgetSoloLightPathsToken()
HUSD_API void HUSDupdateWorldTransformTimeSampling(HUSD_TimeSampling &sampling, const UsdPrim &prim)
HUSD_API void HUSDaddExternalReferencesToLayerMap(const SdfLayerRefPtr &layer, XUSD_IdentifierToReferenceInfoMap &referenceinfomap, bool recursive, bool include_placeholders=false)
HUSD_API void HUSDupdateValueTimeSampling(HUSD_TimeSampling &sampling, const UsdAttribute &attrib)
Unsorted map container.
Definition: UT_Map.h:107
virtual UsdStageRefPtr createStage(UsdStage::InitialLoadSet loadset, int nodeid) const =0
HUSD_API void HUSDsetSaveControl(const SdfLayerHandle &layer, const UT_StringRef &savecontrol)
HUSD_API void HUSDclearPrimEditorNodeIds(const UsdPrim &prim)
HUSD_API bool HUSDvalueMightBeTimeVarying(const UsdAttribute &attrib)
#define SYS_VISIBILITY_EXPORT
SdfLayerRefPtr myLayer
Definition: XUSD_Utils.h:122
A 4x4 matrix transformation.
Definition: xformOp.h:135
HUSD_API void HUSDupdateTimeSampling(HUSD_TimeSampling &sampling, HUSD_TimeSampling new_sampling)
HUSD_API bool HUSDisLopLayer(const std::string &identifier)
HUSD_API UsdStageRefPtr HUSDcreateStageFromRootLayer(const SdfLayerRefPtr &rootlayer, const HUSD_LoadMasks *load_masks, const UsdStageWeakPtr &context_stage)
#define OP_INVALID_ITEM_ID
Definition: OP_ItemId.h:23
HUSD_API HUSD_LayerOffset HUSDgetLayerOffset(const SdfLayerOffset &layeroffset)
GLsizei const GLchar *const * string
Definition: glcorearb.h:814
UT_Map< std::string, SdfLayerRefPtr > XUSD_IdentifierToLayerMap
Definition: XUSD_Utils.h:127
HUSD_API std::string HUSDgetLayerSaveLocation(const SdfLayerHandle &layer, bool *using_node_path=nullptr)
HUSD_API Usd_PrimFlagsPredicate HUSDgetUsdPrimPredicate(HUSD_PrimTraversalDemands demands)
HUSD_API bool HUSDgetNodePath(int nodeid, UT_StringHolder &nodepath)
HUSD_API SdfPath HUSDgetBestRefPrimPath(const UT_StringRef &reffilepath, const SdfFileFormat::FileFormatArguments &args, const UT_StringRef &refprimpath, UsdStageRefPtr &stage)
GLsizei const GLchar *const * path
Definition: glcorearb.h:3341
HUSD_API void HUSDsetSoloLightPaths(const SdfLayerHandle &layer, const HUSD_PathSet &paths)
HUSD_API const TfToken & HUSDgetOverrideSavePathToken()
HUSD_API SdfLayerOffset HUSDgetSdfLayerOffset(const HUSD_LayerOffset &layeroffset)
#define HUSD_API
Definition: HUSD_API.h:32
HUSD_API bool HUSDisLayerEmpty(const SdfLayerHandle &layer, const UsdStageRefPtr &compare_stage_root_prim=UsdStageRefPtr(), bool ignore_sublayers=false)
HUSD_API SdfVariability HUSDgetSdfVariability(HUSD_Variability variability)
Class which writes ASCII or binary JSON streams.
Definition: UT_JSONWriter.h:37
HUSD_API HUSD_TimeSampling HUSDgetLocalTransformTimeSampling(const UsdPrim &pr, bool *resets=nullptr)
HUSD_API void HUSDclearEditorNodes(const SdfLayerHandle &layer)
HUSD_API HUSD_TimeCode HUSDgetEffectiveTimeCode(const HUSD_TimeCode &timecode, const UsdAttribute &attr)
HUSD_API void HUSDclearBestRefPathCache(const std::string &layeridentifier=std::string())
InitialLoadSet
Definition: stage.h:164
HUSD_API const TfToken & HUSDgetIsAutoCreatedShaderToken()
HUSD_API bool HUSDisSopLayer(const std::string &identifier)
HUSD_API void HUSDsetSavePath(const SdfLayerHandle &layer, const UT_StringRef &savepath, bool savepath_is_time_dependent, const UT_StringRef &overrides_savepath=UT_StringRef())
HUSD_API HUSD_TimeSampling HUSDgetWorldTransformTimeSampling(const UsdPrim &pr)
HUSD_PrimTraversalDemands
Definition: HUSD_Utils.h:39
HUSD_API UsdListPosition HUSDgetUsdListPosition(const UT_StringRef &editopstr)
HUSD_API bool HUSDupdateExternalReferences(const SdfLayerHandle &layer, const std::map< std::string, std::string > &pathmap)
HUSD_API bool HUSDprimAndAllExistingAncestorsActive(const UsdStageWeakPtr &stage, const SdfPath &path)
UsdStagePtr UsdStageWeakPtr
Definition: common.h:55
HUSD_API bool HUSDgetSaveControl(const SdfLayerHandle &layer, std::string &savecontrol)
HUSD_API UsdStagePopulationMask HUSDgetUsdStagePopulationMask(const HUSD_LoadMasks &load_masks)
HUSD_TimeSampling HUSDgetBoundsTimeSampling(const UsdPrim &prim, bool world_space_bounds)
HUSD_API const std::string & HUSDgetStageRootLayerIdentifier()
HUSD_API std::map< std::string, XUSD_ExternalRefType > HUSDgetExternalReferences(const SdfLayerRefPtr &layer)
HUSD_API void HUSDsetSoloGeometryPaths(const SdfLayerHandle &layer, const HUSD_PathSet &paths)
GLenum GLuint GLint GLint layer
Definition: glcorearb.h:1299
HUSD_API SdfLayerRefPtr HUSDcreateAnonymousLayer(const SdfLayerHandle &context_layer=SdfLayerHandle(), const std::string &tag=std::string())
HUSD_API void HUSDbumpPropertiesForHydra(const UsdAttributeVector &attrs)
HUSD_API bool HUSDgetSavePath(const SdfLayerHandle &layer, std::string &savepath)
HUSD_API SdfPrimSpecHandle HUSDgetLayerInfoPrim(const SdfLayerHandle &layer, bool create)
HUSD_API bool HUSDconvertDictionary(UT_Options &options, const VtDictionary &dict, const UT_StringMap< UT_StringHolder > *aliases=nullptr)
HUSD_API bool HUSDcopySpec(const SdfLayerHandle &srclayer, const SdfPath &srcpath, const SdfLayerHandle &destlayer, const SdfPath &destath, const SdfPath &srcroot=SdfPath(), const SdfPath &destroot=SdfPath(), const fpreal frameoffset=0, const fpreal frameratescale=1)
HUSD_API bool HUSDisPrimHiddenInUi(const UsdPrim &prim)
HUSD_Variability
Definition: HUSD_Utils.h:85
Definition: token.h:87
UT_Map< std::string, XUSD_SavePathInfo > XUSD_IdentifierToSavePathMap
Definition: XUSD_Utils.h:131
HUSD_API void HUSDaddVolumeLockedGeos(XUSD_Data &outdata, const SdfLayerRefPtr &layer)
HUSD_API const TfToken & HUSDgetSavePathToken()
UT_StringHolder myFinalPath
Definition: XUSD_Utils.h:111
HUSD_API bool HUSDgetCreatorNode(const SdfLayerHandle &layer, std::string &nodepath)
HUSD_API const TfToken & HUSDgetPrimEditorNodesToken()
HUSD_API bool HUSDisStageVariableExpression(const UT_StringRef &expr, bool check_for_errors)
std::function< std::string(const std::string &assetPath)> UsdUtilsModifyAssetPathFn
Definition: dependencies.h:98
HUSD_API bool HUSDgetSavePathIsTimeDependent(const SdfLayerHandle &layer)
HUSD_API UT_StringHolder HUSDgetSpecifier(const UsdPrim &prim)
HUSD_API void HUSDconvertVariantSelectionFallbacks(const UT_StringMap< UT_StringArray > &utfallbacks, PcpVariantFallbackMap &fallbacks)
std::vector< TfRefPtr< SdfLayer > > SdfLayerRefPtrVector
HUSD_API const TfToken & HUSDgetPreviewDefaultValueKeyPathToken()
HUSD_API bool HUSDgetSoloLightPaths(const SdfLayerHandle &layer, HUSD_PathSet &paths)
HUSD_API SdfSpecifier HUSDgetSdfSpecifier(const UT_StringRef &specifier, bool *valid=nullptr)
constexpr std::enable_if< I< type_count_base< T >::value, int >::type tuple_type_size(){return subtype_count< typename std::tuple_element< I, T >::type >::value+tuple_type_size< T, I+1 >);}template< typename T > struct type_count< T, typename std::enable_if< is_tuple_like< T >::value >::type >{static constexpr int value{tuple_type_size< T, 0 >)};};template< typename T > struct subtype_count{static constexpr int value{is_mutable_container< T >::value?expected_max_vector_size:type_count< T >::value};};template< typename T, typename Enable=void > struct type_count_min{static const int value{0};};template< typename T >struct type_count_min< T, typename std::enable_if<!is_mutable_container< T >::value &&!is_tuple_like< T >::value &&!is_wrapper< T >::value &&!is_complex< T >::value &&!std::is_void< T >::value >::type >{static constexpr int value{type_count< T >::value};};template< typename T > struct type_count_min< T, typename std::enable_if< is_complex< T >::value >::type >{static constexpr int value{1};};template< typename T >struct type_count_min< T, typename std::enable_if< is_wrapper< T >::value &&!is_complex< T >::value &&!is_tuple_like< T >::value >::type >{static constexpr int value{subtype_count_min< typename T::value_type >::value};};template< typename T, std::size_t I >constexpr typename std::enable_if< I==type_count_base< T >::value, int >::type tuple_type_size_min(){return 0;}template< typename T, std::size_t I > constexpr typename std::enable_if< I< type_count_base< T >::value, int >::type tuple_type_size_min(){return subtype_count_min< typename std::tuple_element< I, T >::type >::value+tuple_type_size_min< T, I+1 >);}template< typename T > struct type_count_min< T, typename std::enable_if< is_tuple_like< T >::value >::type >{static constexpr int value{tuple_type_size_min< T, 0 >)};};template< typename T > struct subtype_count_min{static constexpr int value{is_mutable_container< T >::value?((type_count< T >::value< expected_max_vector_size)?type_count< T >::value:0):type_count_min< T >::value};};template< typename T, typename Enable=void > struct expected_count{static const int value{0};};template< typename T >struct expected_count< T, typename std::enable_if<!is_mutable_container< T >::value &&!is_wrapper< T >::value &&!std::is_void< T >::value >::type >{static constexpr int value{1};};template< typename T > struct expected_count< T, typename std::enable_if< is_mutable_container< T >::value >::type >{static constexpr int value{expected_max_vector_size};};template< typename T >struct expected_count< T, typename std::enable_if<!is_mutable_container< T >::value &&is_wrapper< T >::value >::type >{static constexpr int value{expected_count< typename T::value_type >::value};};enum class object_category:int{char_value=1, integral_value=2, unsigned_integral=4, enumeration=6, boolean_value=8, floating_point=10, number_constructible=12, double_constructible=14, integer_constructible=16, string_assignable=23, string_constructible=24, other=45, wrapper_value=50, complex_number=60, tuple_value=70, container_value=80,};template< typename T, typename Enable=void > struct classify_object{static constexpr object_category value{object_category::other};};template< typename T >struct classify_object< T, typename std::enable_if< std::is_integral< T >::value &&!std::is_same< T, char >::value &&std::is_signed< T >::value &&!is_bool< T >::value &&!std::is_enum< T >::value >::type >{static constexpr object_category value{object_category::integral_value};};template< typename T >struct classify_object< T, typename std::enable_if< std::is_integral< T >::value &&std::is_unsigned< T >::value &&!std::is_same< T, char >::value &&!is_bool< T >::value >::type >{static constexpr object_category value{object_category::unsigned_integral};};template< typename T >struct classify_object< T, typename std::enable_if< std::is_same< T, char >::value &&!std::is_enum< T >::value >::type >{static constexpr object_category value{object_category::char_value};};template< typename T > struct classify_object< T, typename std::enable_if< is_bool< T >::value >::type >{static constexpr object_category value{object_category::boolean_value};};template< typename T > struct classify_object< T, typename std::enable_if< std::is_floating_point< T >::value >::type >{static constexpr object_category value{object_category::floating_point};};template< typename T >struct classify_object< T, typename std::enable_if<!std::is_floating_point< T >::value &&!std::is_integral< T >::value &&std::is_assignable< T &, std::string >::value >::type >{static constexpr object_category value{object_category::string_assignable};};template< typename T >struct classify_object< T, typename std::enable_if<!std::is_floating_point< T >::value &&!std::is_integral< T >::value &&!std::is_assignable< T &, std::string >::value &&(type_count< T >::value==1)&&std::is_constructible< T, std::string >::value >::type >{static constexpr object_category value{object_category::string_constructible};};template< typename T > struct classify_object< T, typename std::enable_if< std::is_enum< T >::value >::type >{static constexpr object_category value{object_category::enumeration};};template< typename T > struct classify_object< T, typename std::enable_if< is_complex< T >::value >::type >{static constexpr object_category value{object_category::complex_number};};template< typename T > struct uncommon_type{using type=typename std::conditional<!std::is_floating_point< T >::value &&!std::is_integral< T >::value &&!std::is_assignable< T &, std::string >::value &&!std::is_constructible< T, std::string >::value &&!is_complex< T >::value &&!is_mutable_container< T >::value &&!std::is_enum< T >::value, std::true_type, std::false_type >::type;static constexpr bool value=type::value;};template< typename T >struct classify_object< T, typename std::enable_if<(!is_mutable_container< T >::value &&is_wrapper< T >::value &&!is_tuple_like< T >::value &&uncommon_type< T >::value)>::type >{static constexpr object_category value{object_category::wrapper_value};};template< typename T >struct classify_object< T, typename std::enable_if< uncommon_type< T >::value &&type_count< T >::value==1 &&!is_wrapper< T >::value &&is_direct_constructible< T, double >::value &&is_direct_constructible< T, int >::value >::type >{static constexpr object_category value{object_category::number_constructible};};template< typename T >struct classify_object< T, typename std::enable_if< uncommon_type< T >::value &&type_count< T >::value==1 &&!is_wrapper< T >::value &&!is_direct_constructible< T, double >::value &&is_direct_constructible< T, int >::value >::type >{static constexpr object_category value{object_category::integer_constructible};};template< typename T >struct classify_object< T, typename std::enable_if< uncommon_type< T >::value &&type_count< T >::value==1 &&!is_wrapper< T >::value &&is_direct_constructible< T, double >::value &&!is_direct_constructible< T, int >::value >::type >{static constexpr object_category value{object_category::double_constructible};};template< typename T >struct classify_object< T, typename std::enable_if< is_tuple_like< T >::value &&((type_count< T >::value >=2 &&!is_wrapper< T >::value)||(uncommon_type< T >::value &&!is_direct_constructible< T, double >::value &&!is_direct_constructible< T, int >::value)||(uncommon_type< T >::value &&type_count< T >::value >=2))>::type >{static constexpr object_category value{object_category::tuple_value};};template< typename T > struct classify_object< T, typename std::enable_if< is_mutable_container< T >::value >::type >{static constexpr object_category value{object_category::container_value};};template< typename T, enable_if_t< classify_object< T >::value==object_category::char_value, detail::enabler >=detail::dummy >constexpr const char *type_name(){return"CHAR";}template< typename T, enable_if_t< classify_object< T >::value==object_category::integral_value||classify_object< T >::value==object_category::integer_constructible, detail::enabler >=detail::dummy >constexpr const char *type_name(){return"INT";}template< typename T, enable_if_t< classify_object< T >::value==object_category::unsigned_integral, detail::enabler >=detail::dummy >constexpr const char *type_name(){return"UINT";}template< typename T, enable_if_t< classify_object< T >::value==object_category::floating_point||classify_object< T >::value==object_category::number_constructible||classify_object< T >::value==object_category::double_constructible, detail::enabler >=detail::dummy >constexpr const char *type_name(){return"FLOAT";}template< typename T, enable_if_t< classify_object< T >::value==object_category::enumeration, detail::enabler >=detail::dummy >constexpr const char *type_name(){return"ENUM";}template< typename T, enable_if_t< classify_object< T >::value==object_category::boolean_value, detail::enabler >=detail::dummy >constexpr const char *type_name(){return"BOOLEAN";}template< typename T, enable_if_t< classify_object< T >::value==object_category::complex_number, detail::enabler >=detail::dummy >constexpr const char *type_name(){return"COMPLEX";}template< typename T, enable_if_t< classify_object< T >::value >=object_category::string_assignable &&classify_object< T >::value<=object_category::other, detail::enabler >=detail::dummy >constexpr const char *type_name(){return"TEXT";}template< typename T, enable_if_t< classify_object< T >::value==object_category::tuple_value &&type_count_base< T >::value >=2, detail::enabler >=detail::dummy >std::string type_name();template< typename T, enable_if_t< classify_object< T >::value==object_category::container_value||classify_object< T >::value==object_category::wrapper_value, detail::enabler >=detail::dummy >std::string type_name();template< typename T, enable_if_t< classify_object< T >::value==object_category::tuple_value &&type_count_base< T >::value==1, detail::enabler >=detail::dummy >inline std::string type_name(){return type_name< typename std::decay< typename std::tuple_element< 0, T >::type >::type >);}template< typename T, std::size_t I >inline typename std::enable_if< I==type_count_base< T >::value, std::string >::type tuple_name(){return std::string{};}template< typename T, std::size_t I >inline typename std::enable_if<(I< type_count_base< T >::value), std::string >::type tuple_name(){auto str=std::string{type_name< typename std::decay< typename std::tuple_element< I, T >::type >::type >)}+ ','+tuple_name< T, I+1 >);if(str.back()== ',') str.pop_back();return str;}template< typename T, enable_if_t< classify_object< T >::value==object_category::tuple_value &&type_count_base< T >::value >=2, detail::enabler > > std::string type_name()
Recursively generate the tuple type name.
Definition: CLI11.h:1729
HUSD_API HUSD_TimeSampling HUSDgetValueTimeSampling(const UsdAttribute &attrib)
HUSD_API void HUSDaddPropertyEditorNodeId(const UsdProperty &property, int nodeid)
HUSD_API bool HUSDhasAnyVisibleLights(const UsdStageRefPtr &stage, const HUSD_TimeCode &tc)
HUSD_TimeSampling
Definition: HUSD_Utils.h:99
HUSD_API bool HUSDaddStageTimeSample(const UsdStageWeakPtr &src, const UsdStageRefPtr &dest, const UsdTimeCode &timecode, XUSD_LayerSet &held_layers, bool force_notifiable_file_format, bool set_layer_override_save_paths, XUSD_ExistenceTracker *existence_tracker, HUSD_PathSet *varying_default_paths=nullptr)
std::vector< UsdAttribute > UsdAttributeVector
A std::vector of UsdAttributes.
Definition: attribute.h:46
HUSD_API const TfToken & HUSDgetEditorNodesToken()
HUSD_API const TfToken & HUSDgetSavePathIsTimeDependentToken()
HUSD_API void HUSDsetCreatorNode(const SdfLayerHandle &layer, int node_id)
Definition: prim.h:133
HUSD_API bool HUSDisLayerPlaceholder(const SdfLayerHandle &layer)
XUSD_SavePathInfo(const UT_StringHolder &finalpath, const UT_StringHolder &originalpath, XUSD_ExternalRefType reference_type, bool node_based_path, bool time_dependent)
Definition: XUSD_Utils.h:98
HUSD_API const TfType & HUSDfindType(const UT_StringRef &type_name)
SdfSpecifier
Definition: types.h:117
virtual ~XUSD_StageFactory()
Definition: XUSD_Utils.h:63
HUSD_API SdfLayerRefPtr HUSDflattenLayers(const UsdStageWeakPtr &stage)
HUSD_API void HUSDclearPropertyEditorNodeIds(const UsdProperty &property)
HUSD_API UsdTimeCode HUSDgetEffectiveUsdTimeCode(const HUSD_TimeCode &timecode, const UsdAttribute &attr)
HUSD_API const TfToken & HUSDgetTreatAsSopLayerToken()
Definition: path.h:290
HUSD_API SdfPrimSpecHandle HUSDcreatePrimInLayer(const UsdStageWeakPtr &stage, const SdfLayerHandle &layer, const SdfPath &path, const TfToken &kind, SdfSpecifier specifier, SdfSpecifier parent_prims_specifier, const std::string &parent_prims_type)
std::vector< class SdfPath > SdfPathVector
A vector of SdfPaths.
Definition: path.h:211
HUSD_API bool HUSDisPrimSelectable(const UsdPrim &prim, UT_Map< HUSD_Path, bool > *cache=nullptr)
HUSD_API void HUSDupdateLocalTransformTimeSampling(HUSD_TimeSampling &sampling, const UsdPrim &prim)
HUSD_API const TfToken & HUSDgetPreviewTagsToken()
HUSD_API const TfToken & HUSDgetSaveControlToken()
SdfVariability
Definition: types.h:173
HUSD_API const TfToken & HUSDgetSourceNodeToken()
A map of string to various well defined value types.
Definition: UT_Options.h:84
HUSD_API void HUSDsetSourceNode(const UsdPrim &prim, int node_id)
HUSD_API bool HUSDgetOverrideSavePath(const SdfLayerHandle &layer, std::string &savepath)
SYS_VISIBILITY_EXPORT void newStageFactory(UT_Array< XUSD_StageFactory * > *factories)
HUSD_API UsdTimeCode HUSDgetCurrentUsdTimeCode()
HUSD_API bool HUSDisPrimEditable(const UsdPrim &prim)
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1432
HUSD_API const TfToken & HUSDgetCreatorNodeToken()
HUSD_API bool HUSDlocalTransformMightBeTimeVarying(const UsdPrim &prim)
HUSD_API const TfToken & HUSDgetSoloGeometryPathsToken()
HUSD_API bool HUSDconvertValue(UT_JSONWriter &w, const VtValue &value)
virtual int getPriority() const =0
HUSD_API UsdTimeCode HUSDgetUsdTimeCode(const HUSD_TimeCode &timecode)
fpreal64 fpreal
Definition: SYS_Types.h:277
HUSD_API void HUSDstitchLayers(const SdfLayerHandle &strongLayer, const SdfLayerHandle &weakLayer, HUSD_PathSet *varyingDefaultPaths=nullptr)
HUSD_API SdfPath HUSDgetSdfPath(const UT_StringRef &path)
HUSD_API void HUSDconvertToFileFormatArguments(const UT_StringMap< UT_StringHolder > &ut_args, SdfFileFormat::FileFormatArguments &sdf_args)
HUSD_API SdfLayerRefPtr HUSDcreateAnonymousCopy(SdfLayerRefPtr srclayer, const std::string &tag=std::string())
HUSD_FlattenLayerFlags
Definition: XUSD_Utils.h:475
HUSD_API bool HUSDgetTreatAsSopLayer(const SdfLayerHandle &layer)
HUSD_API const TfToken & HUSDgetHasAutoPreviewShaderToken()
HUSD_API void HUSDgetMinimalPathsForInheritableProperty(bool skip_point_instancers, const UsdStageRefPtr &stage, XUSD_PathSet &paths)
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:91
HUSD_API bool HUSDshouldSaveLayerToDisk(const SdfLayerHandle &layer)
**If you just want to fire and args
Definition: thread.h:609
XUSD_ExternalRefType myReferenceType
Definition: XUSD_Utils.h:123
Definition: type.h:64
HUSD_API const TfToken & HUSDgetDataIdToken()
HUSD_API const SdfPath & HUSDgetHoudiniFreeCameraSdfPath()
Type
Enumerates the set of all transformation operation types.
Definition: xformOp.h:115
GLubyte GLubyte GLubyte GLubyte w
Definition: glcorearb.h:857
Definition: core.h:1131
UT_Map< std::string, XUSD_ReferenceInfo > XUSD_IdentifierToReferenceInfoMap
Definition: XUSD_Utils.h:129
HUSD_API void HUSDcopyMinimalRootPrimMetadata(const SdfLayerRefPtr &dest, const SdfLayerHandle &src)
HUSD_API void HUSDsetTreatAsSopLayer(const SdfLayerHandle &layer, bool treatassoplayer)
HUSD_API const TfToken & HUSDgetVolumeFilePathsToken()
HUSD_API const TfToken & HUSDgetMaterialIdToken()
UsdListPosition
Definition: common.h:88
XUSD_SavePathInfo(const UT_StringHolder &finalpath)
Definition: XUSD_Utils.h:90
HUSD_API void HUSDclearDataId(const UsdAttribute &attr)
XUSD_ExternalRefType
Definition: XUSD_Utils.h:76
type
Definition: core.h:1059
HUSD_API void HUSDgetMinimalMostNestedPathsForInheritableProperty(const UsdStageRefPtr &stage, XUSD_PathSet &paths)
HUSD_API void HUSDaddPrimEditorNodeId(const UsdPrim &prim, int node_id)
HUSD_API void HUSDmodifyAssetPaths(const SdfLayerHandle &layer, const UsdUtilsModifyAssetPathFn &modifyFn)
std::map< std::string, std::string > FileFormatArguments
Definition: fileFormat.h:119
Definition: value.h:164
std::map< std::string, std::vector< std::string > > PcpVariantFallbackMap
Definition: types.h:206
HUSD_API std::string HUSDgetTag(const XUSD_DataLockPtr &datalock)
HUSD_API VtValue HUSDoptionToVtValue(const UT_OptionEntry *option)
HUSD_API void HUSDgenerateUniqueTransformOpSuffix(UT_StringHolder &suffix, const UsdGeomXformable &xformable, UsdGeomXformOp::Type type=UsdGeomXformOp::TypeTransform, bool test_base_xform=false)
HUSD_API SdfLayerRefPtr HUSDflattenLayerPartitions(const UsdStageWeakPtr &stage, int flatten_flags, SdfLayerRefPtrVector &explicit_layers)
HUSD_API bool HUSDgetSoloGeometryPaths(const SdfLayerHandle &layer, HUSD_PathSet &paths)
UT_StringHolder myOriginalPath
Definition: XUSD_Utils.h:112
HUSD_API TfToken HUSDgetParentKind(const TfToken &kind)
HUSD_API const TfToken & HUSDgetDialogScriptToken()
XUSD_ExternalRefType myReferenceType
Definition: XUSD_Utils.h:113
GLenum src
Definition: glcorearb.h:1793
HUSD_API bool HUSDisDerivedType(const UsdPrim &prim, const TfType &base_type)
bool myWarnedAboutMixedTimeDependency
Definition: XUSD_Utils.h:116
HUSD_API SdfPathVector HUSDgetSdfPaths(const UT_StringArray &paths)