09-04-2013 03:18 PM
hello.
I have an XY graph, with values of 0-10 in X, and of 0-10 in Y. I have two cursors in the graph.
I do not want the cursor is out of the graph area of 10 * 10, I disabled the auto scale, but the cursor can get out of the area of 10 * 10.
I also hope that the value of X of the cursor0 does not exceed the value of X of the cursor1.
I hope you can help me with these restrictions on movement, thank you very much.
09-04-2013 03:45 PM
Right click on the graph and unselect Advanced>Cursors Scroll Graph.
09-04-2013 04:05 PM
that's excellent, thank you.
Now I only need restrict that the value of X of the cursor0 does not exceed the value of X of the cursor1 when moving the cursors.
09-09-2013 12:27 PM
Hey there, If you want to restrict the value of the cursors you can use property nodes to do so..
Here is an example; you just need to get the value on X of the active cursor (0 or 1) and then compare those values; if the value is smaller; you can use a case structure and a property node to coerce the values.
Hope this info helps.
Greetings
09-09-2013 06:33 PM
If your UI is using an event structure (of course it is, right?), you can register for various cursor grab/move/release events on the XY graph. That way you don't have to poll for where the cursors are all the time.
Dave