Ah okey, hmm.
I Would like to export my Layers to PNG and if i user the .artBoardClipping = true; i will get the space between the artboard and the layer.
If i set it to false then i would get all layer at all artboards so then i need to hide the layers that is not on the current artboard.
Hence my question How do i know what layers to hide? Is it even possible?
Or can i remove the space between artboard and layer?
Hum… So your page items are scattered in 3 dimensions… X & Y across multi-arboards… and Z for the layer positioning… That is not as straight forward as it should be… Artboards do NOT have a page items collection…
Do you understand?
No, Layers don't have "size"
lets pretend you have 1 artboard and 1 layer
you draw a square in...ah...the only layer you have, layer 1. it may be on the only artbaord you have, it may not. Then you add another artboard, and move your drawing to Artboard number 2, it still on layer 1, it's the only layer you have. And still may be on artboard 1, or 2, or none (off the drawing area).
I understand that the layer does not have any size but when i export layers to PNG i only want to export where its actually drawn something.
This is at layersize:
This is at artboardsize:
Do you understand what i mean?
That works great! its just that i want to export all artboards to a PNG with all layer that is on that artboard. So if i uncheck the Clip to Artboard then i need to hide all the layers that is not on the the current artboard that i am exporting.
Here comes the problem, how do i know what layers to hide and not? According to Muppet Mark you cant know what layer are on what artboard.
That's true. One way would be to set up your file with all the items on each artboard on a layer by itself. Then the layer and the artboard could have the same name with sublayers to further control the objects.
are you using the artboard panel to manage your artboards?
artboards dont respond to layer depth, think of them as on a single depth plane. all objects are flattened in that sense when it comes to exporting the artboard, although they are not, just trying to explain the concept.
you can save out multiple artboards in the save as dialogue box by listing the artboard numbers,
if you dont want transparency you would export as jpeg or tiff. - not .png
you can place all items you want to export on one artboard if you want them on the same page,
exporting to PDF allows you to combine all artboards onto one page, or each artboard on its own PDF page in the PDF document.
here`s a rundown on the basics of artboards.
Yeah, i made the script look for the layername, if it begins with a 1 then i belongs to artboard 1.
for example: 1GreenLayer2003 will be exported with the first artboard.
Thanks for all the helo!
What are you using to get each layer as *.png regardless of the artboards? Sorry just trying to get a visual of what you are trying to do… You want a *.png of each layer ( that has content? ) of each doc artboard? So artboard 1 could have 5 layers with content artboard 2 could have 20 and so on… but you only want layers for each artboard that have visible content… Am I on the right wavelength or not?