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.

  1. You’re the one with the brains here. I’m wtaching for your posts.

  2. IMHO you’ve got the right anwesr!

  1. No trackbacks yet.

*