Skip to content

Commit

Permalink
Symbol editing mode support
Browse files Browse the repository at this point in the history
  • Loading branch information
kefiijrw authored Aug 27, 2023
1 parent 7d1b878 commit 7b67c8b
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions Round Corner Customization.jsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Round Corners Customization v.0.1.1
* Round Corners Customization v.0.1.2
* https://github.com/kefiijrw/Round-Corners-Customization-for-Illustrator
*
* Author: Sergey Nikolaev
* kefiijrw.com
*
* Date: 2023-06-26
* Date: 2023-08-28
*
*
* CHANGELOG:
Expand Down Expand Up @@ -33,6 +33,9 @@
* v.0.1.1
* Isolation mode support
*
* v.0.1.2
* Symbol editing mode support
*
*/

//show the settings panel on startup
Expand Down Expand Up @@ -679,10 +682,8 @@ function draw_evolute_for_path(opath) {



// var ss = doc.layers.getByName('Isolation Mode');
// alert(ss.name);
// var ss = doc.layers.getByName('Symbol Editing Mode');

// var nn = ss.layers[0].layers.add();

//create a test layer, where the profile will be drawn, if it does not already exist
try {
Expand All @@ -694,14 +695,24 @@ function draw_evolute_for_path(opath) {
tmp_layer = doc.layers.add();

} catch (e) {
//if we can`t create tmp layer, we are most likely in isolation mode
//if we can`t create tmp layer, we are most likely in isolation mode or symbol editing mode

try {
//isolation mode in layer
tmp_layer = doc.layers.getByName('Isolation Mode').layers[0].groupItems.add();
} catch (e) {

//isolation mode in group
tmp_layer = doc.layers.getByName('Isolation Mode').groupItems[0].groupItems.add();
try {

tmp_layer = doc.layers.getByName('Isolation Mode').groupItems[0].groupItems.add();

} catch (e) {
//symbol editing mode
tmp_layer = doc.layers.getByName('Symbol Editing Mode').layers[0].groupItems.add();

}

}


Expand Down

0 comments on commit 7b67c8b

Please sign in to comment.