Skip to main content
brian_p_dts
Community Expert
Community Expert
June 28, 2023
Answered

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

  • June 28, 2023
  • 2 replies
  • 524 views

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: 

 

 

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. 

 

 

This is the client's action step:
 

 

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

 

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.

 



This topic has been closed for replies.
Correct answer CarlosCanto

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

2 replies

Monika Gause
Community Expert
Community Expert
June 28, 2023

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

pixxxelschubser
Community Expert
Community Expert
June 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.

CarlosCanto
Community Expert
CarlosCantoCommunity ExpertCorrect answer
Community Expert
June 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

brian_p_dts
Community Expert
Community Expert
June 28, 2023

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