User experience: change colors, materials interactively on viewing??


can acrobat 3d give viewer options change objects color 1 of several options, turn on , off options, etc.?
the intended usage product configurator (online or downloadable)

thanks,

les

yes, can this. key use javascript api. since i'm not sure how desire have solution work, i'll post example code here. if want describe further have in mind, can provide more code.

//============================================
//example of using keyboard "c" key change mesh color red

//get target mesh
mymesh = scene.meshes.getbyname("wheel1");

//create keyboard event handler, , act upon "c" or "c"
keh = new keyeventhandler();
keh.onevent = function(event)
{
switch (event.charactercode)
{
case 67: //c or c
case 99:
mymesh.rendermode = "illustration";
mymesh.illustrationrendermodefacecolor.set(1,0,0);
break;
}
}
runtime.addeventhandler(keh);

//inform user
console.println("press c change object color red");
//============================================


More discussions in Rich Media & 3D


adobe

Comments

Popular posts from this blog

invalid use of void expresion in FlexiTimer2 library

error: a function-definition is not allowed here before '{' token

LED Strip Code