How to access class attribute from outside of class [message #1837724] |
Thu, 04 February 2021 18:34 |
Thomas Chiang Messages: 100 Registered: March 2020 |
Senior Member |
|
|
Hi,
I am trying to set a conditional style for my edge based upon a boolean attribute from its source node. Intuitively I assumed that the precondition would be aql: self.sourceNode.eGet(condition) but it gives the error that condition is not a variable. So then using the interpreter I selected my source node and did self.condition which gives me the same error. When I do self.name it works fine, and so does feature:condition when I set the conditional style for the node itself. How come feature:condition works but self.condition does not? And how do I access the boolean condition from my edge in order to set the conditional style for my edge?
I am essentially trying to get the arrow leaving my classes to match the color of the source node as shown in the pic.
[Updated on: Thu, 04 February 2021 19:00] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01430 seconds