05-06-2009 12:27 AM
Hello,
I have got one graph with 2 cursors. And I need to by able to set the coordinates of each cursor by using property nodes. However, if I click right button mouse button - create - property node - cursor - cursor position - -then there are only 3 possibilities "All elements", "X", Y" which links only to one of the cursors (actually I don`t know which). How is possible to link 2 cursors`s position property nodes to 2 cursors in one graph?
Thank you a lot for discussion.
Martin Pekar
Solved! Go to Solution.
05-06-2009 12:37 AM - edited 05-06-2009 12:38 AM
Property nodes execute top to bottom. Resize the property node to four elements as follows:
and wire the two positions.
05-06-2009 03:44 AM
Hi xombox,
do as Altenbach said!
The "ActCrsr" stands for "ActiveCursor" - so you select the cursor to manipulate. The same scheme applies to other things (like plots) too - first you select the "active" one, then you manipulate it...
05-06-2009 08:24 AM - edited 05-06-2009 08:25 AM
Also, if you have more than a few cursors, you can make the code more scalable by using an array of positions and a FOR loop as follows.
Now the code automatically adapts th the number of cursors you actually have.
(Of course all other common sense applies, for example only set this when the position changes. Don't write the same cursor postions with every iteration of the loop over and over. ;))