Copy link to clipboard
Copied
I created an accidental typo in a line of code for a Photoshop script:
var x = parseFloat(app.activeDocument..activeLayer.bounds[0]);
See where I went wrong...
.. instead of .
It should have been
var x = parseFloat(app.activeDocument.activeLayer.bounds[0]);
However, the error I got was:
XML.descendants() cannot work with instances of this class
And it got me thinking, what does that error actually refer to? - not that I was using XML in this case. Does double dot in this case, break dot notation?
Maybe this will help
Copy link to clipboard
Copied
Maybe this will help
Find more inspiration, events, and resources on the new Adobe Community
Explore Now