Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

PSD to PNG files PSD to 2D Tool Kit Sprites [RELEASED]

Discussion in 'Assets and Asset Store' started by gblue, Feb 29, 2012.

  1. gblue

    gblue

    Joined:
    Jan 1, 2012
    Posts:
    13
    These packages are accepted to the asset store.
    Price is 10$ and 20$
    Version is 1.0

    [PSD2PNGs]

    PSD2PNGs ASSETSTORE LINK

    PSD2PNGs is simple tool that extract PSD layers to PNG files in Unity.




    [PSD2TK2D]

    PSD2TK2D ASSETSTORE LINK

    PSD2TK2D is a converting tool that PSD layers to 2D Toolkit Sprites which will surely reduce your labor.

    Check the screen shots for more information. It is easy to use!!

    important: You must have 2D Toolkit to use this.

     
    Last edited: Feb 29, 2012
  2. KyleStaves

    KyleStaves

    Joined:
    Nov 4, 2009
    Posts:
    821
    Question - does it handle positioning in the scene automatically? As in, can I create a GUI menu - pop the PSD into Unity, click this button and have the sprites auto-added to the scene as tk2dSprites?

    If not, you should definitely consider adding that functionality - as it would be an enormous time saver (where as without that functionality it's a pretty minimal time saver). Also, an option for which sprite-collection to add the PSD files to would be great if it's missing, and some logic for auto-overwriting previous versions within tk2d.

    With auto-placement I'll definitely buy a copy.
     
  3. gblue

    gblue

    Joined:
    Jan 1, 2012
    Posts:
    13
    Hi~ Kyle.

    Basically, when you converting to 2D Tool Kit Sprite.
    It automatically positioning according to PSD layers position.

    But after arrangement, if you modify the layer of PSD file.
    It will not affect the positioning of sprites.

    I'm working on it about this.
    I'll update it after finish my current project.

    And I'll consider about the selection of spriteCollection.
    Thank you for your good suggestions and interest.
     
    Last edited: Mar 1, 2012
  4. nikolic

    nikolic

    Joined:
    Oct 15, 2011
    Posts:
    162
    Does it work with the PSD files having layer groups hierarchy?
     
  5. ZJP

    ZJP

    Joined:
    Jan 22, 2010
    Posts:
    2,649
    Hi,

    Does it work in game?
    It is possible to extract the pngs with script?

    +1

    JP
     
    Last edited: Mar 1, 2012
  6. gblue

    gblue

    Joined:
    Jan 1, 2012
    Posts:
    13
    Hi~ nikolic. Yes it does.
    When you extract the group layers it will looks like this.

    [For File]
    GroupName-LayerName1.png
    GroupName-LayerName2.png
    GroupName2-LayerName1.png
    GroupName2-LayerName2.png

    [For 2D Tool Kit Sprites]
    GroupName-LayerName1
    GroupName-LayerName2
    GroupName2-LayerName1
    GroupName2-LayerName2
     
  7. gblue

    gblue

    Joined:
    Jan 1, 2012
    Posts:
    13
    Hi ZJP~

    Yes It can extract png files.

    Also, basically, when you converting to 2D Tool Kit Sprite,
    it automatically positioning according to PSD layers position.

    But after arrangement, if you modify the layer of PSD file.
    It will not affect the positioning of sprites.
    I'm working on it about this.
     
    Last edited: Mar 1, 2012
  8. ZJP

    ZJP

    Joined:
    Jan 22, 2010
    Posts:
    2,649
    I keep an eye on your tool ;)

    JP
     
  9. AlexChux

    AlexChux

    Joined:
    Feb 5, 2011
    Posts:
    2
    Will you add support of parsing text layers to your cool plugin?
     
  10. gblue

    gblue

    Joined:
    Jan 1, 2012
    Posts:
    13
    I'm sorry for late reply.

    For now, I don't have a plan for text layers. But I'll consider about that.

    Thank you for your interest.
     
  11. Lars-Steenhoff

    Lars-Steenhoff

    Joined:
    Aug 7, 2007
    Posts:
    3,521
    I really like the plugin, just one feature request:

    Adjustment layers : Curves

    I use these to color correct my skyboxes and would like to out put the textures from one psd file. is this something that can be added?
    Thanks
     
  12. gblue

    gblue

    Joined:
    Jan 1, 2012
    Posts:
    13
    At this time, I'm working on two projects for a living~
    But, I have a plan for adding some functions.

    When I start the work I'll let you know..
    Thank you for your suggestion.
     
  13. diod

    diod

    Joined:
    Apr 30, 2012
    Posts:
    1
    does it export only raster layers not applying any effects?
     
  14. gblue

    gblue

    Joined:
    Jan 1, 2012
    Posts:
    13
    Yes, It only support raster layers for now.
     
  15. stevesan

    stevesan

    Joined:
    Aug 14, 2011
    Posts:
    65
    Hi gblue,
    This is great, and I'm really considering buying it. However, for artists making animations, doesn't it make sense to export frames rather than layers? Or even layer compositions?

    I could write a photoshop export script to do those things, but it's certainly attractive to have a Unity plugin do that automagically.
     
  16. Teku-Studios

    Teku-Studios

    Joined:
    Sep 29, 2012
    Posts:
    257
    Hi! Will you update this to Unity 4? I am working with both it and 2DToolkit 1.8 patch 3 and I have an intense use of sprites. Would be awesome if I could finally use this utility.
     
  17. InvalidCola

    InvalidCola

    Joined:
    Nov 18, 2012
    Posts:
    2
    When I try to save PSD layers to either 2D Toolkit or PNG I get this error: "Color space support RGB only" -- any idea what this means?
     
  18. InvalidCola

    InvalidCola

    Joined:
    Nov 18, 2012
    Posts:
    2
    Ah, I fixed the problem now.. But now it gives me another error! When I click "run" it starts working and then says: "Unable to fit textures in requested atlas area: There are too many textures in this collection for the requested atlas size."

    It still creates some objects (png, sprite collection, sprite collection data), but the sprite collection and sprite collection data are not set up correctly..

    I have "Make Sprite Collection" and "Make Sprite Object" enabled, "Max Texture Size" is set to 4096, and Gap is set to 10, "Overwrite PNG Files" is disabled, and the PSD file is enabled. The PSD is 984x1422 and contains only a single layer..

    Any ideas?
     
  19. JariHuomo

    JariHuomo

    Joined:
    Feb 8, 2013
    Posts:
    48
    "Unable to fit textures in requested atlas area: There are too many textures in this collection for the requested atlas size."

    Received too this message with 1024x768 size PSD file.
     
  20. Teku-Studios

    Teku-Studios

    Joined:
    Sep 29, 2012
    Posts:
    257
    Hi! I love your PSD 2 2DT asset, it's making things a lot easier for my current work (I'm developing a 2.5D sidescroller platformer with Unity 4 and 2DToolkit 1.91).

    Do you plan to update it soon to make it fully compatible with 2DT 1.9x? That new version has lots of potential!!
     
    Last edited: Feb 16, 2013
  21. AntonObertiukh

    AntonObertiukh

    Joined:
    Mar 24, 2013
    Posts:
    4
    Hi! Now I have 2DToolKit v2.0. Do you plan to update it soon to make it fully compatible with 2DToolKit 2.0?
     
  22. gblue1223

    gblue1223

    Joined:
    Jan 2, 2013
    Posts:
    6
    @stevesan Thank you for your interesting! I'm not sure I understand your question exactly but, I think you can use layers like frames with tk2d.
    And layer composition is a big problem. I was tried but, I didn't have enough time to develop them coz I have to do my priority job.

    But I just made a Text Layer parser few months ago.
    And I'm going to insert it after finish PSD2NGUI package.
     
  23. gblue1223

    gblue1223

    Joined:
    Jan 2, 2013
    Posts:
    6
    @Teku Thank you for asking Teku. I updated it few months ago to support Unity4.
    And I'll support 2D Tool Kit 1.9 soon.
     
    Last edited: Sep 4, 2013
  24. gblue1223

    gblue1223

    Joined:
    Jan 2, 2013
    Posts:
    6
    @InvalidCola Hi~ I think I sent the answer for this problem by email. The message you'd seen came from 2D Toolkit not PSD2TK2D. It is related with layer size and count.
     
  25. gblue1223

    gblue1223

    Joined:
    Jan 2, 2013
    Posts:
    6
    @JariHuomo Hi~ The message you'd seen came from 2D Toolkit. Most atlas which made by 2D Toolkit is 2048x2048. Thus, if there is too many layers in PSD file the message will be shown.
     
  26. gblue1223

    gblue1223

    Joined:
    Jan 2, 2013
    Posts:
    6
    @Tosha_info Hi~ Okay, I will update it in few days from now. Thank you.
    -------------
    I think it is fine with 2D Tool Kit 2.1, I just tested with 2.1.
     
    Last edited: Sep 4, 2013
  27. freegodsoul

    freegodsoul

    Joined:
    May 31, 2014
    Posts:
    1
    Hello, thanks for great tools!

    I have a problem with loading of big PSD files (more than 200MB).
    At an extracting of layers in PNG files, there is an exception inside PsdParser.dll:

    Code (csharp):
    1. System.Exception: Input buffer exhausted in copy
    2.   at PsdParser.PSDUtil.decodeRLE (System.Byte[] src, System.Byte[] dst, Int32 packedLength, Int32 unpackedLength) [0x00000] in <filename unknown>:0
    3.   at PsdParser.PSDChannelInfo.readData (System.IO.BinaryReader br, Int32 bps, Int32 compressionType, System.Int16[] rlePackLengths) [0x00000] in <filename unknown>:0
    4.   at PsdParser.PSDChannelInfo.loadData (System.IO.BinaryReader br, Int32 bps) [0x00000] in <filename unknown>:0
    5.   at PsdLayerExtractor+Layer.loadData (System.IO.BinaryReader br, Int32 bpp) [0x0003e] in D:\Work\Projects\Butterfly FX\src\Assets\PSD2TK2D\Editor\PsdLayerExtractor.cs:35
    6.   at PsdLayerExtractor.loadPsdLayerData () [0x00034] in D:\Work\Projects\Butterfly FX\src\Assets\PSD2TK2D\Editor\PsdLayerExtractor.cs:97
    7. UnityEngine.Debug:Log(Object)
    8. PsdLayerExtractor:loadPsdLayerData() (at Assets/PSD2TK2D/Editor/PsdLayerExtractor.cs:103)
    9. PsdLayerExtractor:saveLayersToPNGs(Boolean, Boolean) (at Assets/PSD2TK2D/Editor/PsdLayerExtractor.cs:114)
    10. PsdLayerToPngFiles:OnGUI() (at Assets/PSD2TK2D/Editor/PsdLayerToPngFiles.cs:16)
    11. UnityEditor.HostView:OnGUI()
    It is possible to correct somehow it without decrease in quality/size of the initial PSD file?
    Here a link to PSD-file for check: https://drive.google.com/file/d/0B0acIR4O_XZySW1nLXl3VWFIZ0E/edit?usp=sharing
     
    Last edited: May 31, 2014
  28. NazimR

    NazimR

    Joined:
    Mar 12, 2014
    Posts:
    17
    Hello, is it possible to make a version of this that arranges the files in scene like the 2D toolkit version but with pngs arranged as Unity native 2D sprites? If such as thing is possible I would buy it right away! I also want to be able to control the depth between the layers and I want it to create empty objects as parents for the groups. If it made the groups optional (like a checkbox) that would make it even better!