34 pxr::UsdVolVolume::FieldMap fields = volume_.GetFieldPaths();
36 for (pxr::UsdVolVolume::FieldMap::const_iterator it = fields.begin(); it != fields.end(); ++it) {
38 pxr::UsdPrim fieldPrim =
prim_.GetStage()->GetPrimAtPath(it->second);
40 if (!fieldPrim.IsA<pxr::UsdVolOpenVDBAsset>()) {
44 pxr::UsdVolOpenVDBAsset fieldBase(fieldPrim);
46 pxr::UsdAttribute filepathAttr = fieldBase.GetFilePathAttr();
48 if (filepathAttr.IsAuthored()) {
50 filepathAttr.Get(&fp, time);
52 const std::string filepath = fp.GetResolvedPath();
59 if (filepathAttr.ValueMightBeTimeVarying()) {
60 std::vector<double> filePathTimes;
61 filepathAttr.GetTimeSamples(&filePathTimes);
63 if (!filePathTimes.empty()) {
64 const int start = int(filePathTimes.front());
65 const int end = int(filePathTimes.back());
67 volume->
filepath,
nullptr, 0,
nullptr, 0,
nullptr);
const char * BKE_main_blendfile_path_from_global()
int BLI_path_sequence_decode(const char *path, char *head, size_t head_maxncpy, char *tail, size_t tail_maxncpy, unsigned short *r_digits_len)