AppleScript Help: Converted my Text Layer to Shapes, Next want to hide first sub-layer (child) of the Shapes Layer

Talk about Pixelmator Pro, share tips & tricks, tutorials, and other resources.
User avatar

2022-11-07 16:11:44

AppleScript Snippet:


# [Success] Step1: Converted my Text Layer into Shapes (it shows each letter as separate sub-layer)
tell myTextLayer to convert into shape

# [Success] Step2: Got Reference to the newly created layer with all Shapes inside
set myTextLayerAsShapes to layer 1

# [Failing] Step3: Hide first child (sub-layer) of myTextLayerAsShapes
set visible of layer (layer 1 of myTextLayerAsShapes) to false
Kindly help me to hide first child of shapes layer...