mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-20 20:46:28 +02:00
[ui] filepath: retrieve the Viewpoint param value only once
This commit is contained in:
parent
2621fece29
commit
e96960913d
1 changed files with 5 additions and 4 deletions
|
@ -103,14 +103,15 @@ class FilepathHelper(QObject):
|
||||||
def resolve(self, path, vp):
|
def resolve(self, path, vp):
|
||||||
# Resolve dynamic path that depends on viewpoint
|
# Resolve dynamic path that depends on viewpoint
|
||||||
|
|
||||||
|
vpPath = vp.childAttribute("path").value
|
||||||
replacements = {
|
replacements = {
|
||||||
"<VIEW_ID>": str(vp.childAttribute("viewId").value),
|
"<VIEW_ID>": str(vp.childAttribute("viewId").value),
|
||||||
"<INTRINSIC_ID>": str(vp.childAttribute("intrinsicId").value),
|
"<INTRINSIC_ID>": str(vp.childAttribute("intrinsicId").value),
|
||||||
"<POSE_ID>": str(vp.childAttribute("poseId").value),
|
"<POSE_ID>": str(vp.childAttribute("poseId").value),
|
||||||
"<PATH>": vp.childAttribute("path").value,
|
"<PATH>": vpPath,
|
||||||
"<FILENAME>": FilepathHelper.basename(FilepathHelper, vp.childAttribute("path").value),
|
"<FILENAME>": FilepathHelper.basename(FilepathHelper, vpPath),
|
||||||
"<FILESTEM>": FilepathHelper.removeExtension(FilepathHelper, FilepathHelper.basename(FilepathHelper, vp.childAttribute("path").value)),
|
"<FILESTEM>": FilepathHelper.removeExtension(FilepathHelper, FilepathHelper.basename(FilepathHelper, vpPath)),
|
||||||
"<EXTENSION>": FilepathHelper.extension(FilepathHelper, vp.childAttribute("path").value),
|
"<EXTENSION>": FilepathHelper.extension(FilepathHelper, vpPath),
|
||||||
}
|
}
|
||||||
|
|
||||||
resolved = path
|
resolved = path
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue