PV3D: Accessing Cube Materials & MovieMaterials
Two snippets for people who want to handle PV3D primitives like cubes, planes or spheres. The solutions are quite basic, but badly documented and hard to find.
Change a cube’s materials:
cube.replaceMaterialByName(material, "top");
Access (play, stop, gotoAndPlay, etc.) the MovieClip inside of a MovieAssetMaterial / MovieMaterial
MovieClip(material.movie).gotoAndPlay(1);
Good to know.
Youre the one with the brains here. Im wtaching for your posts.
IMHO you’ve got the right anwesr!