Welcome Guest

Pages: 1
Switch to Artwork Tab in Edit Panel from an Action
Gary-SwiftPostJune 1, 2025, 02:35
Advanced
Posts: 70
Registered:
April 29, 2014, 06:12
Normal topicSwitch to Artwork Tab in Edit Panel from an Action

I’m wondering if this is possible:

I have an action that checks whether an image is too large or too small. If it’s too large, it reduces the size; if it’s too small, it runs the “Auto Search for Artwork” function.

This setup works well for my needs. However, I’d like the edit panel to automatically switch to the Artwork tab whenever the search is triggered.

2MR2PostJune 1, 2025, 09:05
Avatar photo
Administrator
Posts: 2362
Registered:
August 23, 2012, 19:27
Normal topicSwitch to Artwork Tab in Edit Panel from an Action

Hmmmm .... I can't think of any way to currently do this. i assume that you want the Artwork panel to be focused when the action terminates. Doing it while the action runs won't do much as it will not be updated while the action is running.

The only way I can think of doing it would be to add a new option to the Stop Action and Post Process statement. .

eg.

#editpanel
name of panel to display

Preview 1 of v8.2 is already out to the preview list. I should be able to add this for Preview 2.

Let me know if this will work for you.

Gary-SwiftPostJune 1, 2025, 09:37
Advanced
Posts: 70
Registered:
April 29, 2014, 06:12
Normal topicSwitch to Artwork Tab in Edit Panel from an Action

Yeah, sure, that would work (I think).

I'm on v8.1.1 now.

I could possibly put a conditional statement at the end of the action that runs only if a named var is set.

Something like this:

' Test if the artwork exists
Test if artwork does not exist
if false
    ' Test if the artwork is more than 1200px
    Test if artwork is less than 1201x1201 w&h
    if false
        ' Prompt to conform the artwork resize.
        Ask "Do you wish to auto-resize the artwork?↵…"
        if true
            Manipulate the first artwork item Scale if w | h > 1200 Force to baseline JPG Force 72 ppi Square (fill transparent)
        endif
    else
        Test if artwork is less than 999x999 w&h
        if true
            Ask Alert "Please check the album artwork!↵…"
            if true
                Auto Search for Artwork
                Set named variable 'search' to "true"
            endif
        endif
    endif
endif
Test if named variable 'search' is equal to "true" (Set test state)
if true
    ' Go to edit ‘Artwork’ edit panel if named var ‘search’ is set to true.a
    Stop Action and Post Process with the contents of named variable 'search'
endif
2MR2PostJune 1, 2025, 11:23
Avatar photo
Administrator
Posts: 2362
Registered:
August 23, 2012, 19:27
Normal topicSwitch to Artwork Tab in Edit Panel from an Action

You'd have to change the content of the 'search' named variable and the test as follows:

Set named variable 'search' to "#Edit Panel\nArtwork"
Test if named variable 'search' is not empty (Set test state)

Note that Artwork has to be on a line following the #Edit Panel token:
#Edit Panel
Artwork

The functionality is in and tested. If you want to be added to the preview list, let me know. This functionality will be available in v8.2 preview 2 which will post in about a week.

Gary-SwiftPostJune 2, 2025, 04:23
Advanced
Posts: 70
Registered:
April 29, 2014, 06:12
Normal topicSwitch to Artwork Tab in Edit Panel from an Action

I can't seem to get it to work as intended.

I've created the named variable `search` with the lines you provided and I'm testing that it's not empty.

I did initially try set search with "#Edit Panel\nArtwork", but then reread your comment and changed it to:

#Edit Panel
Artwork
2MR2PostJune 2, 2025, 07:08
Avatar photo
Administrator
Posts: 2362
Registered:
August 23, 2012, 19:27
Normal topicSwitch to Artwork Tab in Edit Panel from an Action

Sorry. I thought I was clear. The functionality was added in v8.2 which is not yet generally released.

Preview 1 of v8.2 is already out to the preview list. I should be able to add this for Preview 2.

There is no way to programmatically change the current edit panel until v8.2.

Gary-SwiftPostJune 2, 2025, 08:03
Advanced
Posts: 70
Registered:
April 29, 2014, 06:12
Normal topicSwitch to Artwork Tab in Edit Panel from an Action

Sorry, my mistake. You made it clear but I misread.

No worries so, I'll wait until v8.2 is available.

Thanks for the help.

Gary-SwiftPostJuly 27, 2025, 09:31
Advanced
Posts: 70
Registered:
April 29, 2014, 06:12
Normal topicSwitch to Artwork Tab in Edit Panel from an Action

I've updated to v8.2 and this works great, thanks!

2MR2PostJuly 27, 2025, 16:40
Avatar photo
Administrator
Posts: 2362
Registered:
August 23, 2012, 19:27
Normal topicSwitch to Artwork Tab in Edit Panel from an Action

Thanks for letting me know

Pages: 1
Mingle Forum by Cartpauj | Version: 1.1.0beta | Page loaded in: 0.04 seconds.