This forum contains outdated content and is available for reading only. Please contact technical support if you have any questions.

PSD Sliding Text Layers

Using the Advanced PSD Add on is it possible to have a text layer change its position depending on the size of the layer beside it?

For example:

[First Name] [Last Name] [Position]

[First Name], [Last Name] and [Position] are all separate layers and depending on the overall size of the First Name, the [Last Name] layer will slide to the right accordingly as well as [Position] depending on the overall length of [First Name] and [Last Name] layers.

Thanks very much!

- Chris

Hello,

This task is not related to the Advanced PSD Add-on because the add-on just provides functionality for extracting data from PSD, not for rendering or changing it. Implementation of this feature is possible either with System.Drawing objects or with Aurigma.GraphicsMill.Drawing ones (it depends on which rendering engine you want to use - System.Drawing/GDI+ or GDI).

In order to implement this you should control the whole layout of the PSD template and co-ordinate sizes of its parts. Someway you should find groups of layers which can change their size and affect each other. And when size of one text layer is changed, you should use this information and (for example) Aurigma.GraphicsMill.Drawing.Font.MeasureText(...) method to correct position of all dependent layers.
Alex thanks again for the direction you pointed me in with this!

The customer support was awesome and much appreciated!