Is there a ‘best practice’ to assure variables are updated in each part of a graph consistently? I understand that calling something to the right of a value ‘pulls it in’ (I believe is how you state it in the documentation) however running the code without the variable updated gets bad results. How can I update the variables in this area of the graph, without actually running that area of the graph? (See what I did there.) Please see the picture below with what I have been fighting with.
Blackboard and Graph Variables are set/updated with the Set Variable node (you have used one such node in the screenshot bottom left), only when the node’s flow input is called.
The reason why the node returns a different value (3 shown as different in your example) is probably because the Set Variable node is not called before its value output is retrieved and thus the previous set value is returned for example, which depends on the order you’ve set up the nodes to execute. Could that be the reason in your case?
Yes, with that in mind trying to fix the issue I added an UpDate right on top of it to see the results. When that didn’t work I added the WAIT after it thinking maybe a dead end connection was causing a problem so I gave it throughput. (As pictured). It seems only when the code on the right updates does it refresh the value to that code however the damage at that point is already done.
I believe the work around will be for me to make a Graph variable for each type of ‘Select on Int’ I am using, trigger that from an OnVariableChange, pulling all I need in at the same time. This should allow use of the Graph variables later in the script instead of directly tying to the script to the Int Selection Variables. I will try this later today, as well as see if I can get you a full graph in operation that shows the update issue. (I have since removed several of the selectors while trying to get it to work for me.)
An OnUpdateVariable node can work and is very useful indeed. If you can send me a full graph showcasing the issue (support_AT_paradoxnotion.com) that would indeed be very helpful in providing some further suggestions, yes 🙂
Thanks!
Join us on Discord: https://discord.gg/97q2Rjh
Author
Posts
Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.
Login
Register
By registering on this website you agree to our Privacy Policy.