Hello everybody,
So we know Klaus's code which shows the sphere coordinates on mouse click:
Code
<events onclick="screentosphere(mouse.x, mouse.y, m_ath, m_atv); showlog(); trace('clicked at ath=',m_ath,' atv=',m_atv);" />
I've been trying to modify this code so that it shows something like this in the log window:
Code
<point ath="28.4" atv="57.3" />
<point ath="23.86" atv="65.47" />
<point ath="26.85" atv="66.45" />
<point ath="-106.16" atv="76.07" />
This way I could simply copy-past what's shown in the log window in my tour.xml file and my polygone hotspot would be draw.
That would be very convenient when drawing complexe polygone, and much faster than copy-pasting.
The problem is that insering character like quotes (") or smaller than (<) create syntax error. How can I "escape" such a character in order to make it appear in the log window ?
Or is there an even simpler way to do what I'm trying to achieve ?
Thanks a lot