Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

HUD interacting with prims.

Katryna Jie
Registered User
Join date: 24 Jun 2007
Posts: 187
09-13-2007 18:13
Ok, I've been doing my research, but would like some people to confirm/help...


OK, first the things I need comfirmed...

1. Huds are prims, just like I would build to attach to my hand. Hence, I will need to build the hud in world.

2. Huds interact with prims inworld via messages on various channels using standard say/listen commands - huds say on whatever channel you state, just like a normal prim


And now for the questions...

3. Is there a way that I can do a 'hold mouse' command to interact with various prims in the hud? I need multiple prims in the hud to react while I drag the mouse over them with button down. Not click, click, click. And not just mouse-over.

4. How do I change the colour (not texture - just the tint) of a prim with scripting? And save it so that it remembers the setting the next time it rezzes?

5. Similar to above, how do I change a particle emitters colour settings via dialog/remote? Is it possible to write the values in a small script file, which is read by the emitter, and re-written by the remote? I read that new notecards cannot be created, but can they be edited/read?
Shadow Subagja
Registered User
Join date: 29 Apr 2007
Posts: 354
09-13-2007 20:28
From: Katryna Jie

1. Huds are prims, just like I would build to attach to my hand. Hence, I will need to build the hud in world.

Yep, build em then attach em to hud which gives you a 2d view of them.. You can even rotate them while attached to your hude while in edit mode. No difference.

From: someone

2. Huds interact with prims inworld via messages on various channels using standard say/listen commands - huds say on whatever channel you state, just like a normal prim

Yep no different.

From: someone

3. Is there a way that I can do a 'hold mouse' command to interact with various prims in the hud? I need multiple prims in the hud to react while I drag the mouse over them with button down. Not click, click, click. And not just mouse-over.

Take a look at llDetectedGrab()
http://www.lslwiki.net/lslwiki/wakka.php?wakka=llDetectedGrab

From: someone

4. How do I change the colour (not texture - just the tint) of a prim with scripting? And save it so that it remembers the setting the next time it rezzes?

You can use llSetColor(), that sets the tint/color which is a prim property and should persist on THAT instance of the prim. So if you attach it, change the color, and detach, or if you rez it and change the color and pick it back up.

From: someone

5. Similar to above, how do I change a particle emitters colour settings via dialog/remote? Is it possible to write the values in a small script file, which is read by the emitter, and re-written by the remote? I read that new notecards cannot be created, but can they be edited/read?

You'd have to restart the emitter with the new settings. A new call to llParticleSystem will take in all parameters, with the new values of the ones you want to change. The old particle system would stop.
Katryna Jie
Registered User
Join date: 24 Jun 2007
Posts: 187
09-14-2007 01:27
Hmmm, I'm not sure if the llDetectedGrab is quite what I want, but I'll have a play around with it (somehow) and try to see what it does. It may be.
Shadow Subagja
Registered User
Join date: 29 Apr 2007
Posts: 354
09-14-2007 09:46
I'm not sure there is much else to use that really approaches what you describe. Search the forums for things like Slide Bars, Sliders etc where people have attached the click and drag type problems. There didn't seem to be a lot of success.