Jump to content
casterle

Saving Layouts (Workspaces) - cheap workaround on Windows

Recommended Posts

I've seen lots of threads requesting the ability to save workspaces or layouts. I'm (too) choosy about my layout, so I wanted to find a workaround. Since I use a Windows machine I can't help Mac users, but here's what I came up with. 

First, this works great for me but if it doesn't work for you I take no responsibility. 

The settings are saved in xml files in this folder: C:\Users\{YourName}\AppData\Roaming\Affinity\Photo\1.0\Workspaces

You'll find folders for each Persona - WindowProfile.xml, Tools.xml and Toolbars.xml.

The WindowProfile.xml file contains your panel layout for each Persona. 

Now, from within AP, in the Persona of interest, arrange your layout. Exit AP and copy the WindowProfile.xml file somewhere else. You can do this to your heart's desire, creating different layouts and saving them in this fashion.

Then, when you want to use a saved layout, with AP closed copy your saved layout and replace "WindowProfile.xml" with that file (that is, copy the desired file to that folder, delete "WindowProfile.xml" and rename the file to "WindowProfile.xml".

This is, of course, a pain in the backside but it does allow you to radically change your layout for a given task easily. 

You may be tempted, as I was, to try other things. For example, I wanted the tools that display clipped highlights and shadows in the Develop Persona available in the Photo Persona. It was easy to copy the 'ClippedGroup' item from the Toolbars file in Develop and add it to the Toolbars file in Photo. They appeared on the toolbar but, as I suspected, do not work in that context. 

Just make sure you back up everything before you touch it and you can always get back to where to came from.

 


Windows 10 Pro, XP-Pen Deco 03, AP & AD

Share this post


Link to post
Share on other sites
10 hours ago, casterle said:

Then, when you want to use a saved layout, with AP closed copy your saved layout and replace "WindowProfile.xml" with that file (that is, copy the desired file to that folder, delete "WindowProfile.xml" and rename the file to "WindowProfile.xml".

This is, of course, a pain in the backside but it does allow you to radically change your layout for a given task easily. 

Nice workaround for those that need/requested it.

To make things easier you can create a batch file to rename your existing xml file then copy your desired xml file in it's place. Just save the batch file to your desktop and all it takes is a double click to run it.  (renaming is just a precaution if something goes wrong)

Power users could create multiple batch files that copy different xml files (for different layouts) then automatically fires up APhoto

Super power users could create one batch file that prompts the user for an input (to specify the layout they want) then copies the appropriate xml file and fires up Aphoto


Due to the fact that Boris Johnson is now our Prime Minister, punctuation, spelling and grammar will never be worried about ever again.  We now have far bigger problems to be worried about.

Share this post


Link to post
Share on other sites

Hi,

 

here a little batch file which copies the needed XML-File to the standard folder C:\Users\{YourName}\AppData\Roaming\Affinity\Photo\1.0\Workspaces" and start AP.

 

In my case there are two different workspaces (Painting, Photoediting). 

 

After setting up the workspace(s) i copied it (them) to a folder, renamed it (them) and created the following script inside this folder:

@echo off & setlocal
echo This batch file sets the workspace of
echo Affinity Photo and starts the program!
echo.

REM Set workspace
REM -------------
set workspace=none
set choice=0

echo Available Workspaces:
echo ---------------------

echo [1] Painting
echo [2] Photoediting
echo. 

set /p choice="Please select workspace: "

if %choice% == 1 set "workspace=Painting.xml"
if %choice% == 2 set "workspace=Photoediting.xml"


REM If nothing was selected, stop script
REM ------------------------------------
if %workspace% == none ( 
goto END
)


REM Source is the current directory of this script and the filename
REM Destination is the folder where the workspace is saved (with correct filename)
REM ------------------------------------------------------------------------------
set "source=%~dp0%workspace%"
set "destination=C:\Users\(Username)\AppData\Roaming\Affinity\Photo\1.0\Workspaces\Photo\WindowProfile.xml"


REM copy workspace file
REM -------------------
copy %source% %destination%


REM Start Affinity Photo
REM --------------------
start "" "C:\Program Files\Affinity\Affinity Photo\Photo.exe"


REM End script
REM ----------
:END

 

For safety reasons i kept a copy of the last created WindowProfile.xml in the workspace-folder (if something goes wrong with the copy process at any time).

 

Created under Windows 10. Use it at your own risk ;)

 

Greetings from Vienna

Martin

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Please note the Annual Company Closure section in the Terms of Use. These are the Terms of Use you will be asked to agree to if you join the forum. | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.