Newbie scripting question
|
Myranua Eichel
Registered User
Join date: 10 Dec 2007
Posts: 37
|
05-17-2009 15:35
I am trying to make a door swing open and since the vertex of the object cant be changed to be anywhere but the center, how do I get it to swing on the edge of the door. I am coming from Active Worlds and am too used to just being able to type "create rotate 0 3 0" in the command box. Plus anything created as a door, was made with the axis on the edge of the model.
Thanks in advance...
|
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
|
05-17-2009 16:46
Take a sphere, dimple it 50%, then change the prim type to a block. You'll get a block with half the width cut away and the center on an edge.
|
Moon Corrigible
Registered User
Join date: 19 Jan 2007
Posts: 75
|
05-17-2009 16:57
Oohh cool!
Another way to do it is to start with a block edit it, then under the Objects Tab where it says Path Cut Begin and End change those to B: 0 and E: 0.5 or even B 0.5 and E 1.0 whichever floats your boat.
But Argents way is way cooler
|
Myranua Eichel
Registered User
Join date: 10 Dec 2007
Posts: 37
|
05-17-2009 17:09
Ok cool!
Thanks
|
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
|
05-17-2009 17:16
From: Moon Corrigible But Argents way is way cooler
And I'm stylish! 
|
Moon Corrigible
Registered User
Join date: 19 Jan 2007
Posts: 75
|
05-17-2009 17:21
Yeowsa! Be still my beating heart!!
|
Myranua Eichel
Registered User
Join date: 10 Dec 2007
Posts: 37
|
05-17-2009 17:35
Now they are swinging like a doggy door, from the middle..*sigh* what do i change to make it work right now?
|
Moon Corrigible
Registered User
Join date: 19 Jan 2007
Posts: 75
|
05-17-2009 17:38
From: Myranua Eichel Now they are swinging like a doggy door..*sigh* what do i change to make it work right now? Do you mean that they are swinging up and down? Probably the easiest thing to do is just rotate them until they swing the way you want them to. Alternatively you *could* mess with the beginning and ending settings on the path cut entry but that might not do you much good.
|
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
|
05-17-2009 17:40
From: Myranua Eichel Now they are swinging like a doggy door..*sigh* what do i change to make it work right now? Turn the prim on its side and change the door script to match. You want to rotate around the world Z axis.
|
Myranua Eichel
Registered User
Join date: 10 Dec 2007
Posts: 37
|
05-17-2009 17:41
I did rotate them, then had to make them wider to fit the doorway and ended up back at square one with the axis in the center-lol
|
Myranua Eichel
Registered User
Join date: 10 Dec 2007
Posts: 37
|
05-17-2009 17:44
I tihnk maybe i can just replay with the cuts...i may firgure it out eventually 
|
Moon Corrigible
Registered User
Join date: 19 Jan 2007
Posts: 75
|
05-17-2009 17:49
Actually I'm almost positive Argent has it right and you'll need to futz with the script - which script are you using?
|
Beverly Ultsch
Registered User
Join date: 6 Sep 2007
Posts: 229
|
05-18-2009 03:01
Path cut the block
Start 0.125 End 0.625
That puts the centre on an edge.
|
VonGklugelstein Alter
Bedah Profeshinal Tekstur
Join date: 22 Dec 2007
Posts: 808
|
05-18-2009 19:41
Done - Expert to the rescue hahaha
|