This content has been marked as final. Show 2 replies
does 'p3Dmember' actually contain a reference to your 3d cast member? if you haven't explicitly done this at some other point in your code then it won't. You'll need a line something like this:
p3Dmember = member("the name of your 3d cast member")
Also, you don't need that \ in the line.
hope this helps!
I don't work with 3d but in general an object has to be initialized before
it can be used. That certainly pertains to lists. For example, you'll get
the same error if you try to add an item to a variable that wasn't
previously defined as a list
will give you an error but
myList = 
Try initializing your 3d object first.
Word of Mouth Productions
phone 212 928 9581
fax 212 928 9582
159-00 Riverside Drive West #5H-70
NY, NY 10032
"TheStressedStudent" <email@example.com> wrote in message
> Hey as u guys can probably tell fromt he last post, im new to lingo and im
> getting the following script error when i try to run my movie.
> script error: variable used before assigned value
> this is my code...
> -- create the backdrop of sky
> p3Dmember.newTexture("backdrop", #fromCastmember, \ member("sky"))
> error occurs here!!
> p3Dmember.camera(1).insertBackdrop(1, \
> p3Dmember.texture("backdrop"), point(0,0), 0)