1 min read

Take Control of the PSD Import

Topics:

How many times have you imported a PSD in to Storyboard Designer and said to yourself "Geez, I wish I could make all those layers come in as one control." or "This should be a button, why doesn't it come in as one?"  Of course you probably exclaimed these things after first saying "My, the person that wrote this PSD importer is definitely a high level thinker.  Also, they are probably handsome."

Well if you have found yourself muttering the above out loud, you are in luck.  You know longer have to worry about people hearing you talk to yourself, well at least talking to yourself about our product,  as we have started implementing PSD import rules.  Now by applying simple names to your layers and layer groups, you can control how the PSD importer interprets the file.  Here are some of the basic rules that we have come up with:

  1. A PSD layer group ending in "_control" will create a control with all of the layers underneath it as render extensions to that conrtrol.
  2. A PSD layer group ending in "_layer" will create a layer with all of the layers underneath it as controls.  And you can create a multi-image control using rul one in this case as well.
  3. Any layer ending in "_up" that is followed by a layer ending in "_down" will create a button like control with actions to change from the up image to the down image on a button press, and from the down image to the up image on a button release.

There will be more rules to come, that will give you even more control over the import, but we thought that we would start with these.  Once the rules doc is written up, I post a follow up blog that explains these rules in a little greater deatil, but for now I wanted to get the word out about this feature that is coming down the pipe.

- Rodney