Hi , thanks for the reply
the actual rotation of the model is working fine see this code:
on mousewithin me
member(18).model("all").rotate(0,0,-6)
myrotation = member(18).model("all").transform.rotation
put myrotation
end
and with using the put i can see the rotation as in the value, but how do i
put this into a text member so i can monitor it,or while i here how would i
compare it against another, this is a new way of getting the rotation value
that i'm not used to ..!!
oh and one other thing now you mention lights, if i place a light in the
scene from max, and i wish to turn this light on and off depending upon the
rotation of the model how would i do this...?, what i mean to say is how do
i get to the lights with lingo, and is this possible to actually turn a
light on and off from max
many many thanks
-KEV-
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Colin Holgate
Sent: 05 December 2001 15:35
To: [EMAIL PROTECTED]
Subject: Re: <lingo-l> is this actually possible ?
>I am trying to use the variable myRotation to put the rotation of the model
>into so that i can use this to compare things against, am i doin this
right,
>i'm not sure.....I am a bit new to this 3D stuff.
There seems to be a couple of things wrong about your script. One is
that you're talking to member 18. What if that moves in the cast
window? I know it won't on its own, but you might be overcome by an
organization frenzy at a later date, and move the members yourself.
A nice thing about 3D members is that you can set up variables that
point right down to the object you're interested in. For example, say
your 3D member is called "World", you could do this:
global theWorld,allModel
on startmovie
theWorld = member("world")
allModel = theWorld.model("all")
end
Now, anywhere you like you can talk through these variables. To get
the rotation of the model you can say:
myRotation = allModel.transform.rotation
To find out how many lights there are in the scene, you could say:
lightCount = theWorld.light.count
No more relying on a cast member number, or having to use that
lengthy syntax you see in the help.
If your model is not animating itself, I wouldn't even check the
rotation to do the test you were describing. If you're rotating it
using Lingo, then the routine that is doing the rotation will know
that there is a match even before it sets the rotation of the model.
If the model is rotating itself, then you risk missing the point that
the match happens, so you may have to use other tactics to know when
there is a match. In any case, you could just get the rotation during
the comparison routine, and not on every mousewithin.
--
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]