Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get nearest point problem
#10
Ok, I looked into your project. To summarize, you are expecting that variables spawn_pos and 2 to have similar values, since their inputs are similar, but these screenshots show very different values. The reason is not due to some bug of Curvy Splines or its Playmaker addon, but due to the fact that spawn_pos's value is modified somewhere in your graph after it has been assigned a correct value by the action in you screenshot. What you see in your screenshot is its value after modification. Here is its value at assignment, as seen in my debugger:
(0, 0, -38.6)
   
You can see that value, without debbuger, by assigning the output of the action to some new variable that is used nowhere else.
In general, try always to assign values to different variables, it avoids confusion. For example you have a store_pos variable that depending on the moment in the execution of the graph stores either a tf or a distance. It is always better to have a variable storing the tf, and another storing the distance. I know that handling numerous variables in visual programming can take more effort than in written code, so I understand why you would like to reuse variable to store different things in it. It's up to you to weight the pros and cons of reusing variables.
Have a nice day
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Reply


Messages In This Thread
Get nearest point problem - by Lupp_ - 02-28-2021, 12:43 AM
RE: Get nearest point problem - by _Aka_ - 03-01-2021, 09:54 AM
RE: Get nearest point problem - by Lupp_ - 03-01-2021, 02:43 PM
RE: Get nearest point problem - by _Aka_ - 03-01-2021, 03:00 PM
RE: Get nearest point problem - by Lupp_ - 03-01-2021, 04:34 PM
RE: Get nearest point problem - by Lupp_ - 03-01-2021, 10:18 PM
RE: Get nearest point problem - by _Aka_ - 03-02-2021, 10:43 AM
RE: Get nearest point problem - by Lupp_ - 03-02-2021, 01:48 PM
RE: Get nearest point problem - by _Aka_ - 03-02-2021, 02:42 PM
RE: Get nearest point problem - by _Aka_ - 03-03-2021, 11:28 AM
RE: Get nearest point problem - by Lupp_ - 03-04-2021, 10:19 PM
RE: Get nearest point problem - by _Aka_ - 03-05-2021, 10:33 AM
RE: Get nearest point problem - by Lupp_ - 03-05-2021, 02:53 PM
RE: Get nearest point problem - by _Aka_ - 03-05-2021, 03:45 PM
RE: Get nearest point problem - by Lupp_ - 03-05-2021, 06:02 PM
RE: Get nearest point problem - by _Aka_ - 03-06-2021, 12:24 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Control Point Interpolation Overrides. rickgplus 1 536 12-11-2025, 08:52 AM
Last Post: _Aka_
  12_Train junction point richardzzzarnold 5 3,426 04-16-2025, 02:19 PM
Last Post: _Aka_
  OnAfterControlPointAdded - Control Point is null jh092 5 3,198 02-04-2025, 09:31 PM
Last Post: _Aka_
Photo Volume Spots problem with spacing Bond007 3 2,560 01-20-2025, 12:27 PM
Last Post: _Aka_

Forum Jump: