-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to get the type of knot in subpath of shape layer? #402
Comments
I can get the type of shape from
but if it's a just a Invalidated curve, the knots have its own type, how can i get it? |
Check this document. |
Thanks for your answer, i get the path by
but i cant get the fill color of the shape layer, how can i get it? |
now, i can get the type of subpath, and the number of subpath in a shape layer by this code.
for subpath in paths: anchors = [(knot.anchor[1] * layer.width, knot.anchor[0] * layer.height) for knot in subpath]
By this way, I can the all the knot's anchor, but I don't know the type of knot.
from GPT, svg's knot has these types:
In SVG (Scalable Vector Graphics), the element is used to define shapes. The element contains a d attribute, which defines the shape of the path. The shape of the path is composed of a series of commands and parameters.
The commands can be one of the following:
I read the code of ShapeLayer.vector_mask.paths, but can't find this info, could you help me?
Thanks for your wonderful work !!!
The text was updated successfully, but these errors were encountered: