kilianc / adobe-generator

The missing link
3 stars 0 forks source link

Need an intelligent way to deal with layer comps #92

Open timriot opened 11 years ago

timriot commented 11 years ago

I'm thinking that we could do something like this –

If there are no layer comps, output as we are today:

{psdname_psd}/
   index.html
   css/
      psdname_psd.ccs
   imgs/
      asset.jpg
      asset2.png
      ...

If layer comps are detected, do this:

{psdname_psd}/
   index.html <-- tied to the current visual state of the PSD
   layercompname.html
   layercompname2.html
   css/
      psdname_psd.ccs <-- tied to the current visual state of the PSD
      layercompname.css
      layercompname2.css
   imgs/
     asset.jpg <-- tied to the current visual state of the PSD
     asset2.png
     ...
     {layercompname}/
         asset.jpg <-- the same layer/group as above, but representing a different visual state
         asset2.png
         ...
     {layercompname2}/
        asset.jpg
        asset2.png
        ...

A better idea is welcome!