Use object handle in JavaScript™

You can refer to a 3D, SWF, or FLV object’s name in a JavaScript™ using the FM_ prefix.

The following JavaScript™ example uses the FM_ prefix with the object name. This example JavaS­cript™ code makes the relevant object transparent.

1)Insert an object in FrameMaker and name it as my3d in properties in the 3D menu.

2)Attach the following JavaScript™ code to the object. The object my3d is referred to in this code as FM_my3d.

var i,count,tempObj;
var selObj;
for( i=0;i<count;i++){

3)Create the PDF and click the link. The 3D object turns transparent.

September 30, 2016

Legal Notices | Online Privacy Policy