skip to Main Content

Remove zeros from array with regex – Photoshop

I get back a histogram array from Photoshop as a string var rArray = activeDocument.channels["Red"].histogram.toString() For those of you without Photoshop, just ignore that detail as it'll be an array something like 66500,0,0,0,0,0,0,0,0,0,10000,0,0,0,0,0,0,0... 0,0,0,0,0,0,0,0,750,0,0,0,0,0,0,0,0,0,0... Currently I've got a function to…

VIEW QUESTION
Back To Top
Search