BHXSpecterPhoenix Posted January 21, 2022 Share Posted January 21, 2022 I'm a beginner to mesh and SL, but I created a simple sign in blender. Is there a way to make the mesh clickable when it's imported into SL or do I always have to create a prim and make that prim root hidden inside the sign to make the scripts work and my mesh clickable for the scripts to work? Link to comment Share on other sites More sharing options...
Rolig Loon Posted January 21, 2022 Share Posted January 21, 2022 You just put your script right into the mesh. In fact, use the Edit option in your viewer, open the Contents tab, and click "New Script". That will create a basic "Hello, Avatar" script that is clickable. Modify that to do what you want. Link to comment Share on other sites More sharing options...
BHXSpecterPhoenix Posted January 21, 2022 Author Share Posted January 21, 2022 2 minutes ago, Rolig Loon said: You just put your script right into the mesh. In fact, use the Edit option in your viewer, open the Contents tab, and click "New Script". That will create a basic "Hello, Avatar" script that is clickable. Modify that to do what you want. Well what made me wonder was I made a simple square mesh sign and dragged the CasperTech Rez 2 Anchor and Setup scripts into it, but it's not registering me clicking them. If I create a prim and link the sign to the prim and drop the scripts in the prim then the sign works and lets me pair builds. Link to comment Share on other sites More sharing options...
Emma Krokus Posted January 21, 2022 Share Posted January 21, 2022 Are the script(s) in your mesh set to running? (Rightclick script in contents of the prim and select the option.) 1 Link to comment Share on other sites More sharing options...
BHXSpecterPhoenix Posted January 22, 2022 Author Share Posted January 22, 2022 Seems to be a odd thing where I have to drag the setup script in first, then the anchor script and the mesh functions. I've noticed this is the same for Maitreya and the tattoo creation. If you save the UUID in maitreya's NC and drag all scripts and NC at one time it won't work correctly. You have to drag scripts first then NC. Solved the problem though. Thank you all for guessing the issue. Link to comment Share on other sites More sharing options...
Rolig Loon Posted January 22, 2022 Share Posted January 22, 2022 14 minutes ago, BHXSpecterPhoenix said: If you save the UUID in maitreya's NC and drag all scripts and NC at one time it won't work correctly. You have to drag scripts first then NC. Here's why ... The script needs to know that the notecard is there before it can do anything with it. It "learns" that the notecard is present as part of its own startup sequence -- usually in the state_entry event that is triggered whenever the script is restarted. So, most scripters write code in such a way as to force a script to restart if it is in a newly-rezzed object or (sometimes) if someone adds or removes something from the object that the script is in. It sounds like yours is one of them. If you ever have this sort of problem again, just remember that the script needs to be reset before it can do anything. If rezzing it or dropping a notecard into it doesn't reset it automatically, just restart it manually. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now