Tried to post this in response to another thread but doesn't seem like
it took.

I'm new with Away3D and am trying to figure out how to access material
properties of objects.  I understand how to SET an object's material,
either through the init array or just something like myObject.material
= new BitmapMaterial(myBitmap).  But I'm not clear on how to GET an
object's material.  Let's say there's an arbitrary object that I want
to read out what material or color it's using - how would I do this?
I tried things like materialVariable:BitmapMaterial =
myObject.material, and colorVariable:uint = myObject.material.color,
but got type errors in both cases.  The object was loaded from an obj
file, if that's relevant.  If anyone can help that would be great.

Thanks,

Scott

Reply via email to