>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!]

Reply via email to