Sign in to follow this  
Followers 0
Guest

HELP: Web Content (text/html) Media Changer w/Menu Script

10 posts in this topic

Ideally, I would like to do this with 1 prim.  Like maybe a tapered flat prim so it has a frame border, but if I have to use 1-5 prims that is okay too.

I also want a simple menu with like three buttons and no submenus.  The three buttons would direct me to three different websites.  example: button 1 = http://youtube.com, button 2 = http://google.com, and button 3 = http://yahoo.com

I tried making something like this but the problem is that I can't interact with any of the websites, because once I click on the webpage, it makes the menu pop open again.

I have been googling and reading like crazy for the last two days, but I'm not having any luck.  Some help would be greatly appreciated.  Thanks.

PS - I want to do this without using chat commands like "/2 http://youtube.com".  I tried linking two prims, each with the proper media texture.  One prim had the media changer script and the other one didn't.  I was hoping I could use one prim as the menu selecter and the other prim to interact with the website but it didn't work.  I tried making each prim the root prim, but same results.  I'm really stumped.  There has to be a way to do this.

Share this post


Link to post
Share on other sites

I hope I won't have to do this, but maybe I need to do a (2) prim w/ prim to prim communication thing?  Like clicking on one prim will give me the menu to select what website I want and then it will send the URL information to the second prim which will let me interact with it?  Hell if I know.  I don't want to give up though.

Share this post


Link to post
Share on other sites

I freaking LOVE you Darkie Minotaur!!!!!!!  So much!!!  Using llSetLinkMedia fixed everything!  So now my TV is only 1 prim and the script inside it is so short and simple.  But it works wonderfuly!  Yessssssssss!!!  Thank you!

Share this post


Link to post
Share on other sites

A tapered flat prim leaves a border. In that border you could put a texture with 3 ´buttons´.
Than use llDetectedTouchUV to determine which `button`was clicked.

1 person likes this

Share this post


Link to post
Share on other sites

Ron, that's not a bad idea.  It's unnecessary, but it would make the TV more pimp.  But whether I use it or not, doesn't really matter; cuz I really need the llDetectedTouchUV function for some of my other projects.  So thank YOU for mentioning that.  I had no idea what the name of that function was.  Thanks man!  Love you both!

Share this post


Link to post
Share on other sites

Oh, I do have one more question though.  I haven't used PRIM_MEDIA_CONTROLS yet, but I understand that it lets me choose between a standard web navigation control and a mini web navigation control.  Is there a way to get rid of the web navigation control completely via scripting?  If so, let me know how please.

Share this post


Link to post
Share on other sites

You use  PRIM_MEDIA_PERMS_CONTROL for that - but you can set thi right from the start via the edit menu

Share this post


Link to post
Share on other sites


Ron Khondji wrote:

A tapered flat prim leaves a border. In that border you could put a texture with 3 ´buttons´.

Than use
 to determine which `button`was clicked.

This is the best solution because you can have many controls on a single face, but it can require a bit of skill in texturing.  One step simpler is using http://wiki.secondlife.com/wiki/LlDetectedTouchFace.  For your three sites you could go to a different site depending on whether they click the left, bottom or right 'frame'

1 person likes this

Share this post


Link to post
Share on other sites

I too was going to suggest per-face touch control... and hint that a single Mesh can have up to eight faces, arranged wherever you put them in the model.

1 person likes this

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  
Followers 0