Add a CutContour stroke to a vector

prepressman_ntsf
Member
Posts: 55
Joined: Thu Apr 10, 2025 5:12 pm

Add a CutContour stroke to a vector

Post by prepressman_ntsf »

Hello,

I am attempting to create an Action List that copies an existing selected vector shape and applies a CutContour spot stroke to it.

Action List steps as they are.JPG
Action List steps as they are.JPG (84.77 KiB) Viewed 4464 times
The user will select the shape and then select "user selection" so that the action list applies only to that specific selection. I have created another action that is similar and selects everything on the screen, and that works.

vector shape selected.JPG
vector shape selected.JPG (153.72 KiB) Viewed 4464 times

It copies the existing vector shape and then pastes it in the existing x + y position on the screen, then applies the stroke.

However, my problem lies in the fact that it will copy but then not paste. Where has the copied selection gone, and why won't it paste?

Instead, it applies the changes to the existing selection. However, it should only apply the stroke to the copy and paste the copy with the CutContour stroke directly above the original selection

Any help would be immensely appreciated.

Processed navigator list.JPG
Processed navigator list.JPG (98.89 KiB) Viewed 4464 times

Vector used in this demonstration:
https://www.dropbox.com/scl/fi/686v9hi5 ... 5wz6t&dl=0
User avatar
JimmyHartington
Advanced member
Posts: 541
Joined: Tue Mar 22, 2011 7:38 am

Re: Add a CutContour stroke to a vector

Post by JimmyHartington »

Can you share your action list as well?
prepressman_ntsf
Member
Posts: 55
Joined: Thu Apr 10, 2025 5:12 pm

Re: Add a CutContour stroke to a vector

Post by prepressman_ntsf »

Woops, sorry about that.

Here is the action list:


https://www.dropbox.com/scl/fi/vhtpxcgk ... yd558&dl=0
User avatar
JimmyHartington
Advanced member
Posts: 541
Joined: Tue Mar 22, 2011 7:38 am

Re: Add a CutContour stroke to a vector

Post by JimmyHartington »

It seems to work if you add a "Select last added objects" after the paste action.

I have made a version of the action list. The center content is removed, since I imagine you would like the copy to be placed the same places as the original.
https://d.pr/f/KsWBau
freddyp
Advanced member
Posts: 1212
Joined: Thu Feb 09, 2012 3:53 pm

Re: Add a CutContour stroke to a vector

Post by freddyp »

There is a fundamental mistake in the Action List.

Two basic principles of how Action Lists work are:
- Actions that change something only work on what is currently selected
- Actions that change something only use the type of objects that are relevant to them.

Consequence: if objects are selected that are not relevant for a change Action, nothing happens. And that is the case here.

It is very easy to understand that:
Select images
Outline text
will not do anything.

Well,
Select text
Copy
Paste
does not do anything either, because what is selected is text, and the paste Action cannot work on text, it only works on a page.

Solution:
Select text
Copy
Select page/Select all (this will also select the page)
Paste

And after pasting you want to continue with the pasted objects, so after Paste comes:
Select last added objects

You are not the first one to miss that point about paste requiring a page object to be selected. It would perhaps be a good idea to let "Paste" do an implicit select of the page, possibly with a toggle.
prepressman_ntsf
Member
Posts: 55
Joined: Thu Apr 10, 2025 5:12 pm

Re: Add a CutContour stroke to a vector

Post by prepressman_ntsf »

Hi Jimmy,

When I run the modified list you provided, I can only see that a copy was made, but no subsequent actions seem to have taken place:

new action list.JPG
new action list.JPG (65.5 KiB) Viewed 4423 times
prepressman_ntsf
Member
Posts: 55
Joined: Thu Apr 10, 2025 5:12 pm

Re: Add a CutContour stroke to a vector

Post by prepressman_ntsf »

freddyp wrote: ↑Mon Oct 12, 2026 3:37 pm There is a fundamental mistake in the Action List.

Two basic principles of how Action Lists work are:
- Actions that change something only work on what is currently selected
- Actions that change something only use the type of objects that are relevant to them.

Consequence: if objects are selected that are not relevant for a change Action, nothing happens. And that is the case here.

It is very easy to understand that:
Select images
Outline text
will not do anything.

Well,
Select text
Copy
Paste
does not do anything either, because what is selected is text, and the paste Action cannot work on text, it only works on a page.

Solution:
Select text
Copy
Select page/Select all (this will also select the page)
Paste

And after pasting you want to continue with the pasted objects, so after Paste comes:
Select last added objects

You are not the first one to miss that point about paste requiring a page object to be selected. It would perhaps be a good idea to let "Paste" do an implicit select of the page, possibly with a toggle.

Hi Freddyp,

I have added the Select Page/Select All to select the page after the copy objects action, but I still have the same results as previously. It only copies and then no subsequent actions occur.

You mention "select text" ... my action is based on a selection with the direct selection tool made by the user. The user will isolate the vector object they wish to run the action list on. So the first action step is to copy.

current action list.JPG
current action list.JPG (50.07 KiB) Viewed 4417 times

thanks, Neil
prepressman_ntsf
Member
Posts: 55
Joined: Thu Apr 10, 2025 5:12 pm

Re: Add a CutContour stroke to a vector

Post by prepressman_ntsf »

Run On_User Selection.JPG
Run On_User Selection.JPG (23.61 KiB) Viewed 4414 times
freddyp
Advanced member
Posts: 1212
Joined: Thu Feb 09, 2012 3:53 pm

Re: Add a CutContour stroke to a vector

Post by freddyp »

The "Select text" was only meant to illustrate the point about the principles of Action Lists.

The Action List that you are showing violates the first principle: there is no selection in your Action List, so nothing happens. Just add "Select all". As you are using the Action List with a user selection, "Select all" selects whatever the user selected.
prepressman_ntsf
Member
Posts: 55
Joined: Thu Apr 10, 2025 5:12 pm

Re: Add a CutContour stroke to a vector

Post by prepressman_ntsf »

I have added the Select All action to kickoff with and I still only have a Copy made and no subsequent actions occur thereafter.

most recent action list.JPG
most recent action list.JPG (49.41 KiB) Viewed 4406 times
prepressman_ntsf
Member
Posts: 55
Joined: Thu Apr 10, 2025 5:12 pm

Re: Add a CutContour stroke to a vector

Post by prepressman_ntsf »

I'm kind of baffled by this.

It works if the user does a Run on: Complete Document

However, if the user does a Run on: User Selection

It only does the Copy action and never the Paste ... ?
freddyp
Advanced member
Posts: 1212
Joined: Thu Feb 09, 2012 3:53 pm

Re: Add a CutContour stroke to a vector

Post by freddyp »

Ah, right! I did not think of that, but I am not baffled. It is perfectly logical: the only objects available to the Action List are those selected by the user, and these do not include the page object.

Isn't there a way of selecting the objects that require processing in an automated way? If there is no alternative to the manual selection of the objects, I suggest the following approach:
- Select the objects that require processing
- Right-click, Assign to layer, Create new layer, always give it the same name, e.g. Stroke

In your Action List you start with:
Select objects in layer by name - Stroke
and then the rest. And of course, run it on the complete document.
prepressman_ntsf
Member
Posts: 55
Joined: Thu Apr 10, 2025 5:12 pm

Re: Add a CutContour stroke to a vector

Post by prepressman_ntsf »

freddyp,

After assigning the object to a new layer and giving the layer a name, when I go to run the Action List I get the same result.

It does a copy and then no subsequent actions take place.
prepressman_ntsf
Member
Posts: 55
Joined: Thu Apr 10, 2025 5:12 pm

Re: Add a CutContour stroke to a vector

Post by prepressman_ntsf »

Okay, it did work when I placed the Select All action directly after the "Copy objects to clipboard..." action.

Final Action List for Assign Layer.JPG
Final Action List for Assign Layer.JPG (58.02 KiB) Viewed 4232 times

This works and I thank you for it.

I was just hoping to make it work the other way by select the object and then Run on: User selection

But I will take what I can get.

I appreciate your efforts!
User avatar
JimmyHartington
Advanced member
Posts: 541
Joined: Tue Mar 22, 2011 7:38 am

Re: Add a CutContour stroke to a vector

Post by JimmyHartington »

Maybe I have misunderstood something.

But the action list I modified makes a copy of the selected objects.
Paste them and then change them to CutContour.
I have made a revision which puts it on its own layer (https://d.pr/f/Fp0Be3).

And I also made a video on how I run it.
https://d.pr/v/L6N0Fk

Can you confirm that this is not the behaviour you needed?

I saw your original action list had some center on page. In my opinion it would make more sense the CutContour is placed correctly on the design.
But maybe you have some requirements I am not aware of.
Post Reply