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

Trying to figure out difference between Effect > Path > Offset and compound path action

Community Expert ,
Jun 28, 2023 Jun 28, 2023

Hoping someone can help me figure out the differences between the manual Offset Path function and an action my client created that results in an extra compound path. I'm trying to get the compound path and offset functionality working in a script routine. The script routine (from this thread) is: 

var createOffsetPath = function(sel) {
    var offset = 9;
    var xmlstringOffsetPath = '<LiveEffect name="Adobe Offset Path"><Dict data="R mlim 2 R ofst value I jntp 0 "/></LiveEffect>'; // 0 = round, 1=bevel, 2=miter
    xmlstringOffsetPath = xmlstringOffsetPath.replace("value", offset);
    sel.applyEffect(xmlstringOffsetPath);
}



This is the original filled group with a single path: 

brianp311_3-1687969145936.png

 

 

This is the image after I create the offset using Effect>> Path>>Offset Path. Note there is still just a single path in the group. 

brianp311_2-1687969067117.png

 

 

This is the client's action step:
 

brianp311_4-1687969193412.png

 

This is what I get after running an action step on the original group. Note there is now a path and a compound path: 

brianp311_5-1687969231740.png

 

Does anyone know how the action got this compound path effect? I'm trying to mimic it through the scripting process I'm working on. Thanks in advance.

 



TOPICS
How-to , Scripting
371
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

correct answers 1 Correct answer

Community Expert , Jun 28, 2023 Jun 28, 2023

after applying the Offset Path effect you need to Expand Appearance, that will get you the Compound Path you get using the Action

Translate
Adobe
Community Expert ,
Jun 28, 2023 Jun 28, 2023

after applying the Offset Path effect you need to Expand Appearance, that will get you the Compound Path you get using the Action

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
Community Expert ,
Jun 28, 2023 Jun 28, 2023
LATEST

Aha! Didn't read down further in your previous thread. Thanks, Carlos! 

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
Community Expert ,
Jun 28, 2023 Jun 28, 2023

The action probably uses the Offset path function in Object > Path > Offset path. It makes a copy.

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
Community Expert ,
Jun 28, 2023 Jun 28, 2023
quote

The action probably uses the Offset path function in Object > Path > Offset path. It makes a copy.


By @Monika Gause

 

The action definitely uses the Path Offset function in Object > Path > Offset path. It makes a copy.

The script, however, uses the live effect in Effect > Path > Offset path.

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