I'm working on an export script and I'm having trouble defining the canvas dimensions as a variable.
Help?
Adding Canvas Dimesnions to file name in export script
-
Mike Hale
Adding Canvas Dimesnions to file name in export script
It might help to read/review the scripting guides. For example in the javascript guide under document properties you will find the following that will give you the doc dimensions.
app.activeDocument.width
app.activeDocument.height
app.activeDocument.width
app.activeDocument.height
-
Clash
Adding Canvas Dimesnions to file name in export script
I have Code: Select allvar docDim = app.activeDocument.width + "x" + app.activeDocument.height; in place.
However, the output is 800 px x 600 px.
How do I leave out the px? (800x600)
However, the output is 800 px x 600 px.
How do I leave out the px? (800x600)
-
Mike Hale
Adding Canvas Dimesnions to file name in export script
Code: Select allapp.activeDocument.width.as('px') + "x" + app.activeDocument.height.as('px');