You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a bit of a different use for the library (less actually calculating /processing things than representing them), but was wondering about the following situation:
I have a node to which I would like to manually add outputs, i.e. I have a option that's displayed in the sidebar and which allows me to add/modify data on the node. This all works ok, but for some reason, when I then link this new output port to another nodes input port I get an error that the value of the input port could not be determined (essentially I think the new output port is not properly initialized and thus does not properly provide a value.
Since my node has quite some internal functionality, I'm currently extending the DynamicNode class from core, instead of using he defineDynamicNode function.
I tried to update the value of one of the static interfaces of my node hoping this would trigger an onUpdate event that then handles the this properly, but this doesn't seem to work.
It's entirely possible, that I have just created a mess and using things in a way they are not intended, but I was wondering, whether there is an example of a Dynamic Node using a class instead of the function operation.
Also, just out of curiosity: Is it possible to use the defineDynamicNode construction method to create nodes with their own fields and functions, and how would these nodes be able to call their own functions?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I have a bit of a different use for the library (less actually calculating /processing things than representing them), but was wondering about the following situation:
I have a node to which I would like to manually add outputs, i.e. I have a option that's displayed in the sidebar and which allows me to add/modify data on the node. This all works ok, but for some reason, when I then link this new output port to another nodes input port I get an error that the value of the input port could not be determined (essentially I think the new output port is not properly initialized and thus does not properly provide a value.
Since my node has quite some internal functionality, I'm currently extending the
DynamicNode
class from core, instead of using hedefineDynamicNode
function.I tried to update the value of one of the static interfaces of my node hoping this would trigger an
onUpdate
event that then handles the this properly, but this doesn't seem to work.It's entirely possible, that I have just created a mess and using things in a way they are not intended, but I was wondering, whether there is an example of a Dynamic Node using a class instead of the function operation.
Also, just out of curiosity: Is it possible to use the
defineDynamicNode
construction method to create nodes with their own fields and functions, and how would these nodes be able to call their own functions?Beta Was this translation helpful? Give feedback.
All reactions