Copy link to clipboard
Copied
please who can help me to make this path created to come with position center of anchors point ?
1 Correct answer
change the top parameter from - to +
from this
var rect = group.pathItems.rectangle(pos[1] - 5, pos[0] - 5, 10, 10); // Adjust the size and position as needed
to this
var rect = group.pathItems.rectangle(pos[1] + 5, pos[0] - 5, 10, 10); // Adjust the size and position as needed
Explore related tutorials & articles
Copy link to clipboard
Copied
What do you want the script to do?
Copy link to clipboard
Copied
change the top parameter from - to +
from this
var rect = group.pathItems.rectangle(pos[1] - 5, pos[0] - 5, 10, 10); // Adjust the size and position as needed
to this
var rect = group.pathItems.rectangle(pos[1] + 5, pos[0] - 5, 10, 10); // Adjust the size and position as needed
Copy link to clipboard
Copied
Wow this is amazing thank you

