"Mirroring & Merge" Shape Script
-
pfaffenbichler
"Mirroring & Merge" Shape Script
If you have Illustrator you could check out Effect > Distort & Transform > Transform.
-
mycort
"Mirroring & Merge" Shape Script
yeah, learning code just seems so foreign and looks realy complicated for me to grasp...any help here is greatly appreciated. thanks for your help so far.
-
mycort
"Mirroring & Merge" Shape Script
Tried out the code and works really good, if possible....can I request the following adjustments:
- It seems to mirror from left to right, can we have this be reversed so that it will make a mirror right to left?
- The end result is a merged one shape but there's still a line in the middle. As the last function of this script, can you please apply this function to the shapes called "Merge Shape Components" which will eliminate these lines and make a one true shape........
- It seems to mirror from left to right, can we have this be reversed so that it will make a mirror right to left?
- The end result is a merged one shape but there's still a line in the middle. As the last function of this script, can you please apply this function to the shapes called "Merge Shape Components" which will eliminate these lines and make a one true shape........
-
pfaffenbichler
"Mirroring & Merge" Shape Script
To get the flip in the other direction change
Code: Select all var idQcsfive = charIDToTypeID( "Qcs5" );
desc10.putEnumerated( idFTcs, idQCSt, idQcsfive );
to
Code: Select all var idQcsseven = charIDToTypeID( "Qcs7" );
desc10.putEnumerated( idFTcs, idQCSt, idQcsseven );
For other flips record the respective »Reference point location« (set for a Edit > Free Transform Path in the Options Bar) and replace it in the code.
As for the line in the middle I do not see that effect.
You may want to figure out how to offset the duplicated Layer before merging it down.
You can either record that with ScriptingListener or look at ESTK’s Object Model Viewer and look up the method »translate« for »Layer«.
Code: Select all var idQcsfive = charIDToTypeID( "Qcs5" );
desc10.putEnumerated( idFTcs, idQCSt, idQcsfive );
to
Code: Select all var idQcsseven = charIDToTypeID( "Qcs7" );
desc10.putEnumerated( idFTcs, idQCSt, idQcsseven );
For other flips record the respective »Reference point location« (set for a Edit > Free Transform Path in the Options Bar) and replace it in the code.
As for the line in the middle I do not see that effect.
You may want to figure out how to offset the duplicated Layer before merging it down.
You can either record that with ScriptingListener or look at ESTK’s Object Model Viewer and look up the method »translate« for »Layer«.
-
mycort
"Mirroring & Merge" Shape Script
I think there's 2 types of merging here. The first merging function combines 2 layer shapes into one layer while preserving the editablity of shapes. The second merge function which is called "merge shape components" removes any inner lines and anchor points so that the shape is really one whole thing.
I'm really clueless about code and proper cpde structure, so any help you might be able to provide is greatly appreciated. I've tried to play around with some code and just got so many errors in the past. Doesn't script listener not only records what you do in photoshop but also has alot of other code that you have to go through that aren't related to what you want right?
I'm really clueless about code and proper cpde structure, so any help you might be able to provide is greatly appreciated. I've tried to play around with some code and just got so many errors in the past. Doesn't script listener not only records what you do in photoshop but also has alot of other code that you have to go through that aren't related to what you want right?
-
pfaffenbichler
"Mirroring & Merge" Shape Script
I'm really clueless about code and proper cpde structure, so any help you might be able to provide is greatly appreciated.
To be blunt: Are you trying to learn about Scripting or are you looking for someone to do the work for you for free?
Before the re-selection of the original Layer and the Merging you can insert a step that utilizes DOM code to move the activeDocument.activeLayer – »translate« is the method to move a Layer. Please refer to the Object Model Viewer and »Photoshop-CS6-JavaScript-Ref.pdf« for more information on this.
Doesn't script listener not only records what you do in photoshop but also has alot of other code that you have to go through that aren't related to what you want right?
ScriptingListener records the (recordable) steps that are performed in Photoshop; what do you mean by »other code«?
To be blunt: Are you trying to learn about Scripting or are you looking for someone to do the work for you for free?
Before the re-selection of the original Layer and the Merging you can insert a step that utilizes DOM code to move the activeDocument.activeLayer – »translate« is the method to move a Layer. Please refer to the Object Model Viewer and »Photoshop-CS6-JavaScript-Ref.pdf« for more information on this.
Doesn't script listener not only records what you do in photoshop but also has alot of other code that you have to go through that aren't related to what you want right?
ScriptingListener records the (recordable) steps that are performed in Photoshop; what do you mean by »other code«?
-
mycort
"Mirroring & Merge" Shape Script
I am here to simply get help and if possible, to just completely write the script for me. I don't know nothing about writing code and have tried learning but it's just too hard for me to comprehend. At the same time, I can't afford to pay someone to write this for me. Trust me, I will not make any money off the scripts that are created here in this forum. I use this myself to make my workflow much more efficient and I try to share this with other designers for free and with the sole purpose of simply helping others too. The time and effort donated here by many generous programmers help us greatly, which is truly priceless.
-
Ra9chelle
"Mirroring & Merge" Shape Script
The necessary offset could be calculated from the Layer’s bounds.