Does anyone know how this exmaple in the Adobe 3D Gallery is using the included javascript:
http://acrobatusers.com/auc/content/gallery/3d_gallery/gallery_assets/concept_car/Concept_Car_Customization.pdf
I am mainly looking to change the diffuse color, but the API for version 8.1 states the diffuse color is read only.
In the script, there is a method called ChangeColor and it does the following:
context3D.setMaterialColor(context3D.PaintMaterialArray, ColorArray);
yet, the context doesn't recognize this as a method in another PDF I am working with. What gives?
also,
var PaintMaterialArray = new Array("paint", "paint1");
is defined in an Initialization document level function.
function setMaterialColor(materialArray,colorArray)
{
for (index in materialArray)
scene.materials.getByName(materialArray[index]).diffuseColor.set(new Color(colorArray[0]/255,colorArray[1]/255,colorArray[2]/255));
}
Thank you for finding the hidden functionality of colors being writable.
(What else Adobe keeps for its private use?).