-
A script for handling a transparent cursor on slides.
Posted on April 11th, 2009 No commentsThis has been already discussed in the past: if you have some slides and want to point to a specific part of the image you now can with the new features offered from September 2008. Some people did offer some scripting solutions but everytime the software was nomodify and closed. The other interesting point is that we are using only *ONE* prim with a convenient transparent texture so that the script is really simple to write and (possibly to understand).
What I’m offering here is a free and *opensource* solution. Simple to use:
1\ rez your ordinary screen
2\ rez a “glass” i.e. a transparent thin object just in front of your screen and put inside this script:
// Creative Commons: by, nc, sa (attribution, noncommercial, share alike) // Created by Salahzar Stenvaag April 2009 SET() { vector touched=llDetectedTouchST(0); llOffsetTexture(1-touched.x+.025, 1-touched.y+.025, ALL_SIDES); } default { state_entry() { llSetTexture("2ca752b1-894c-bc78-6e49-b021238d6dbc",ALL_SIDES); } touch_start(integer total_number) { SET(); } touch(integer total_number) { SET(); } }
3\ I used a “cursor” made of an empty red circle. You can upload your own texture with your cursor in the bottom left corner. Clicking and dragging the mouse will move and drag the cursor all over so you can use this cursor for everything you need.Salahzar
Leave a reply
You must be logged in to post a comment.


