Hi @Jaime33551855kfcj - Please try the following
function applyShearTransform(value) {
actionString = [
'/version 3',
'/name [ 5',
' 5365742031',
']',
'/isOpen 1',
'/actionCount 1',
'/action-1 {',
' /name [ 5',
' 5368656172',
' ]',
' /keyIndex 0',
' /colorIndex 0',
' /isOpen 1',
' /eventCount 1',
' /event-1 {',
' /useRulersIn1stQuadrant 0',
' /internalName (ai_plugin_transformPalette)',
' /localizedName [ 15',
' 5472616e73666f726d2050616e656c',
' ]',
' /isOpen 1',
' /isOn 1',
' /hasDialog 0',
' /parameterCount 2',
' /parameter-1 {',
' /key 1954115685',
' /showInPalette 4294967295',
' /type (enumerated)',
' /name [ 6',
' 53686561723a',
' ]',
' /value 4',
' }',
' /parameter-2 {',
' /key 1986096245',
' /showInPalette 4294967295',
' /type (unit real)',
' /value ' + value.toFixed(1),
' /unit 591490663',
' }',
' }',
'}'
].join('\n')
var f = new File(Folder.desktop + "/shear.aia");
if (f.exists) {
f.remove();
}
f.open('w')
f.write(actionString)
f.close()
app.loadAction(f)
app.doScript('Shear', 'Set 1')
app.unloadAction('Set 1', '');
f.remove();
}
applyShearTransform(7);