07-15-2010 09:53 AM
Hi everybody,
I am programming an application with many cursors on my XY graph. They are visible or not according to boolean buttons state programmed in event cases. I just need to get back the position of the visible cursors then transform them for an hardware stuff, but it seems that I don't use the right solution. I get back every cursors positions, even the invisible ones. How can I make the difference between the visible and the other ones? I precise that I can't do it one by one because I have a lot of cursors that's why I use the cursorList as you can see on the relative image.
Any Idea ?
Best regards,
MartinO.
Solved! Go to Solution.
07-15-2010 10:13 AM - edited 07-15-2010 10:14 AM
The cursor list makes no distinction between visible/not visible. It will always return all cursors. If you just want the visible ones then you need to iterate through the cursors and read the Visible state. Something like this:
07-16-2010 09:16 AM
thank you it works very well !
Perhaps you also know how to turn a visible cursor into invisible state with the property nodes ?
Best regards,
MartinO.
07-16-2010 09:30 AM - edited 07-16-2010 09:31 AM
Use that same Cursor.Visible property node and change it to a write. You just need to make sure you set the active cursor first, as shown in the snippet I posted.