mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-08 12:27:20 +02:00
[graph] add 'asLinkExpr' method
This commit is contained in:
parent
2e4d9b85e6
commit
8ed0d0a7a2
1 changed files with 5 additions and 1 deletions
|
@ -162,6 +162,10 @@ class Attribute(BaseObject):
|
|||
return '{}.{}'.format(self.root.fullName(), self._name)
|
||||
return '{}.{}'.format(self.node.name, self._name)
|
||||
|
||||
def asLinkExpr(self):
|
||||
""" Return link expression for this Attribute """
|
||||
return "{" + self.fullName() + "}"
|
||||
|
||||
def getName(self):
|
||||
""" Attribute name """
|
||||
return self._name
|
||||
|
@ -254,7 +258,7 @@ class Attribute(BaseObject):
|
|||
|
||||
def getExportValue(self):
|
||||
if self.isLink:
|
||||
return '{' + self.getLinkParam().fullName() + '}'
|
||||
return self.getLinkParam().asLinkExpr()
|
||||
if self.isOutput:
|
||||
return self.desc.value
|
||||
return self._value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue