Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML export from Photoshop CS3 or CC
Forum Updated to NodeBB v4.3 + New Features

QML export from Photoshop CS3 or CC

Scheduled Pinned Locked Moved QML and Qt Quick
8 Posts 2 Posters 3.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Msuijkerbuijk
    wrote on 27 Aug 2013, 09:42 last edited by
    #1

    Hi,

    Does any one know a way to export qml from Photshop CS3?
    And if CS3 is not supported; will Photoshop CC support exporting qml?

    Thanks

    1 Reply Last reply
    0
    • J Offline
      J Offline
      Jens
      wrote on 27 Aug 2013, 10:28 last edited by
      #2

      I wrote an exporter for photoshop a couple of years ago.
      You can see it in action here: http://www.youtube.com/watch?v=9BRJ1qJkjZM

      And the details are here.

      http://blog.qt.digia.com/blog/2010/10/19/exporting-qml-from-photoshop-and-gimp/

      As far as I know this should still work fine with CS3.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Msuijkerbuijk
        wrote on 27 Aug 2013, 10:47 last edited by
        #3

        Thank you for the fast reply!

        I have downloaded your script, but when I try to export the attached example I get this error:

        Error 19: Bad argument appDialogBackground.
        Line: 195
        -> var brush =
        mainDialog.graphics.newBrush(mainDialog.graphics.BrushType.THEME_COLOR,
        "appDialogBackground");

        1 Reply Last reply
        0
        • J Offline
          J Offline
          Jens
          wrote on 27 Aug 2013, 11:32 last edited by
          #4

          I am afraid I don't have access to CS3 or any recent versions of Photoshop so there is not much I can do to help you but a quick google search returned this: http://forums.adobe.com/message/4244689

          It looks like they removed that particular color entry. I suspect you can replace "appDialogBackground" with a specific color such as [0.75, 0.75, 0.75, 1] and get it working though.

          1 Reply Last reply
          0
          • J Offline
            J Offline
            Jens
            wrote on 27 Aug 2013, 11:34 last edited by
            #5

            Or simply comment out that line from the script. I don't think setting the dialog background color is required.

            1 Reply Last reply
            0
            • M Offline
              M Offline
              Msuijkerbuijk
              wrote on 27 Aug 2013, 12:08 last edited by
              #6

              Thank you!

              I changed it to: var brush = mainDialog.graphics.newBrush(mainDialog.graphics.BrushType.SOLID_COLOR, [0.75, 0.75, 0.75], 1 );
              I now do get an export window and when I hit the Export button, something is actually happening.

              But...unfortunately, it stops again with this message:
              Error 24: textItem.size is not a function.
              Line: 406
              -> yoffset -= textItem.size.as("px")/4;

              1 Reply Last reply
              0
              • J Offline
                J Offline
                Jens
                wrote on 27 Aug 2013, 12:18 last edited by
                #7

                I don't know the API of CS3 I am afraid. The script was designed for CS4/5 and later. It might still work if you comment out that line of code, but your text labels will not be positioned properly.

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  Msuijkerbuijk
                  wrote on 27 Aug 2013, 12:47 last edited by
                  #8

                  Thanks again Jens!!
                  It runs without error now :)

                  1 Reply Last reply
                  0

                  1/8

                  27 Aug 2013, 09:42

                  • Login

                  • Login or register to search.
                  1 out of 8
                  • First post
                    1/8
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved