Is it possible to modify textItem leading
Hi,
I'm trying to replace content and leading of textItems. Replacing the content goes well, but the setting the leading is proving to be impossible, the leading is completely bogus.
// this goes fine
layer.textItem.contents =layer.textItem.contents.replace(src,new_text);
// this
layer.textItem.leading =layer.textItem.size;
// results in this
BEFORE CHANGE LEADING size:46.1538505554199 px - leading:200 px
AFTER CHANGE LEADING - size:46.1538505554199 px - leading:68.7966842651367 px
I've tried both this approach and through the script listener
var idslct = charIDToTypeID( "slct" );
var desc7 = new ActionDescriptor();
var idnull = charIDToTypeID( "null" );
...
[ skipping the bull ]
...
var idPxl = charIDToTypeID( "#Pxl" );
desc9.putUnitDouble( idLdng, idPxl, parseFloat(unit_value.value));/**/
var idTxtS = charIDToTypeID( "TxtS" );
desc8.putObject( idT, idTxtS, desc9 );
executeAction( idsetd, desc8, DialogModes.NO );
Everything fails. Any ideas?
Thanks
