Skip to main content
Inspiring
August 14, 2017
Question

Delete bottom sublayer / remove embedded image

  • August 14, 2017
  • 1 reply
  • 339 views

Hello, I have an svg file with 1 layer and hundreds of sublayers.  I'm looking for a way to delete the very bottom sublayer with a script - the bottom layer for the documents I have is an embedded image I need to remove.  I know this is sorta asking two different things but either would solve my dilemma.  Any help would be greatly appreciated.

This topic has been closed for replies.

1 reply

Inspiring
August 14, 2017

Something like this?

activeDocument.rasterItems[0].remove(); // works when only one image existing in the document