HeatherDawn Cohen
Who Me?!?!
Join date: 9 Aug 2004
Posts: 397
|
09-23-2005 13:51
I'm using Apotheus Silverman's script seen here. Here are the results: Here is what I want it to look like: Here is the code I'm assuming needs to be changed: llRezObject(llList2String(models, currentItem), llGetPos() + rezPosition, ZERO_VECTOR, ZERO_ROTATION, commChannel); Help! Thanks, HDC
|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
09-23-2005 14:00
you need to change the rotation.
Something like 90 degrees on y & z
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river. - Cyril Connolly
Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence. - James Nachtwey
|
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
|
09-23-2005 14:02
Rez your vendor. Edit it - zero all the rotation settings. (This may look odd, depending on how you built it. Don't worry about it.) Have it rez one of the image boxen. Rotate it so it's lined up with your vendor the way you'd like it. note the rotation values in the dit box like so: <x,y,z> So let's say it's rotated on x 90 degrees, y zero degreez and z 180 degrees, you'd record that as <90, 0, 180>. Change that line to read: llRezObject(llList2String(models, currentItem), llGetPos() + rezPosition, ZERO_VECTOR, llGetRotaion() * llEuler2Rot(<x,y,z> * DEG_TO_RAD), commChannel); where <x,y,z> is replaced with what you wrote above. I think this will do it for you. This assumes, BTW, all your holos are rotated in exatly the same way. Another option is to add a new root prim to the holos that's totally unroatated - call it "packaging" it. I do this on mine for simplicity, just a big, invisible prim that holds the model.
|
HeatherDawn Cohen
Who Me?!?!
Join date: 9 Aug 2004
Posts: 397
|
09-23-2005 14:10
Thanks guys! I'm getting a "Error : Name not defined within scope" between the parenthasis in llGetRotation(): llRezObject(llList2String(models, currentItem), llGetPos() + rezPosition, ZERO_VECTOR, llGetRotaion(RIGHT HERE) * llEuler2Rot(<0,90,90> * DEG_TO_RAD), commChannel);
|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
09-23-2005 14:13
Try...
llRezObject(llList2String(models, currentItem), llGetPos() + rezPosition, ZERO_VECTOR, llGetRot() * llEuler2Rot(<0,90,90> * DEG_TO_RAD), commChannel);
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river. - Cyril Connolly
Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence. - James Nachtwey
|
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
|
09-23-2005 14:14
From: HeatherDawn Cohen Thanks guys! I'm getting a "Error : Name not defined within scope" between the parenthasis in llGetRotation(): llRezObject(llList2String(models, currentItem), llGetPos() + rezPosition, ZERO_VECTOR, llGetRotaion(RIGHT HERE) * llEuler2Rot(<0,90,90> * DEG_TO_RAD), commChannel); ewps - the library call is "llGetRot()". Sowwy!
|
HeatherDawn Cohen
Who Me?!?!
Join date: 9 Aug 2004
Posts: 397
|
09-23-2005 14:42
YAY, Thanks so much! Had some problems figuring out the rotation though. The rotation of the box was 0,90,90 but it didn't work until I tried 0,0,90. Any thoughts as to why? Anyway, it works great now...thanks a ton! HDC
|
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
|
09-23-2005 14:56
From: HeatherDawn Cohen Any thoughts as to why? The first thought that leaps to mind is: I still don't get rotations 
|