Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

psd to xml

New Here ,
May 27, 2008 May 27, 2008
Hi,

I was wondering if theres a tool that can generate xml files from psds and also include information about things like Layer Styles which are generally not supported by the JSDOM and we have to use actions... I did see a tool that can convert .atn files to xml but dyou think theres a way to automatically extract layer styles from a psd if we dont know the actions?

Help appreciated :)

Regards,
TOPICS
Actions and scripting
3.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Explorer ,
May 27, 2008 May 27, 2008
> I was wondering if theres a tool that can generate xml files from psds and also include information about things like Layer Styles which are generally not supported by the JSDOM and we have to use actions... I did see a tool that can convert .atn files to xml but dyou think theres a way to automatically extract layer styles from a psd if we dont know the actions?

It is possible to get ActionDescriptor(s) that describe the layer style of the a
particular layer in PS. You can also convert that to XML. But how useful or
practical it is remains questionable. For instance, some styles contain
'pattern' objects which may be a bit difficult to handle.

Some of these parts in the inadequately document xtools library:
http://sourceforge.net/projects/ps-scripts/

There's a downloadable zip file from about a year ago. You probably are best off
using CVS to get a newer snapshot. It will have new stuff and fixed bugs.

-X
--
for photoshop scripting solutions of all sorts
contact: xbytor@gmail.com
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 28, 2008 May 28, 2008
thanks.. and hey, do you have any idea how you'd put text on a path? Is that done thru actions too?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 28, 2008 May 28, 2008
Frraaz@adobeforums.com wrote:
> thanks.. and hey, do you have any idea how you'd put text on a path? Is that done thru actions too?

Use the ScriptingListener plugin. It generates JS code whenever you do something
that is recordable.

There is no JSDOM for arbitrary paths. All you can do directly via the PSJS-API
is text warping.


-X
--
for photoshop scripting solutions of all sorts
contact: xbytor@gmail.com
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 30, 2008 May 30, 2008
oh, arrite, thanks!

Can scripting be used to extract pixel data of each layer. I mean like reading how each layer looks like?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 30, 2008 May 30, 2008
and even the scriptlistener doesnt record anything when you use tools like brush...
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 30, 2008 May 30, 2008
Frraaz@adobeforums.com wrote:
> and even the scriptlistener doesnt record anything when you use tools like brush...

If you can't record it, you can't (usually) script it. Brush strokes are in this
category.

-X
--
for photoshop scripting solutions of all sorts
contact: xbytor@gmail.com
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 02, 2008 Jun 02, 2008
Arrite, thanks a lot X :)

Just one more thing, 1 Text Layer can have content which can have multiple formatting, for example, the first word can be bigger than the second word. Is there any way to retrieve that information using the javascript built in functions because the ScriptListener produces thousands of lines of code which is a real pain!
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 03, 2008 Jun 03, 2008
LATEST
>Is there any way to retrieve that information using the javascript built in functions because the ScriptListener produces thousands of lines of code which is a real pain!

I wrote some experimental code in xtools (xlib/Text.jsx and xlib/TextTest.jsx)
to come up with more proper JS DOM for dealing with TextStyles and
TextStyleRanges. I haven't had much of a need to do this kind of thing in PS so
while the code may be functional it may not actually be useful.

-X
--
for photoshop scripting solutions of all sorts
contact: xbytor@gmail.com
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines