Copy link to clipboard
Copied
Is it possible to change trap units from pixels to millimeters using javascript. By default, trap units are set on pixels, i need to change it to millimeters using javacsript. I use this script to complete traping, and it works correct only if units are manualy changed to millimeters. How to imporve this?
var idTrap = charIDToTypeID( "Trap" );
var desc6698 = new ActionDescriptor();
var idWdth = charIDToTypeID( "Wdth" );
var idRlt = charIDToTypeID( "#Rlt" );
desc6698.putUnitDouble( idWdth, idRlt, 0.566895 );
executeAction( idTrap, desc6698, DialogModes.NO );
Copy link to clipboard
Copied
Or just to alert user that units are not in millimeters...
Copy link to clipboard
Copied
Seems that we have chewed on this meat before:
Copy link to clipboard
Copied
Obviously we didn't chew it all š It was two years ago, i hope there are some updates š