# Testing Shape Layer Creation
## Problem Summary
The shape layer creation wasn't working because of a self-referential issue in the script generator. The underscore-named commands (like `add_shape_layer`) were trying to call methods that didn't exist due to incorrect object property references.
## Fix Applied
1. Changed the underscore command mappings from arrow functions to regular functions with proper `this` binding
2. Updated all mappings to use `this.methodName.call(this, params)` pattern
3. Added missing command implementations for various tools
## Test Steps
1. Make sure After Effects is running with the AE MCP Bridge panel open
2. Enable "Auto Process" in the panel
3. Use Claude to create a shape layer:
- First create a composition
- Then add a shape layer to it
## Example Commands
```javascript
// Create a test composition
mcp__ae-mcp__create_composition({
name: "Shape Test Comp",
width: 1920,
height: 1080,
duration: 10,
frameRate: 30
})
// Add a rectangle shape
mcp__ae-mcp__add_shape_layer({
compId: [comp ID from above],
name: "Rectangle Shape",
shapeType: "rectangle"
})
// Add other shape types
mcp__ae-mcp__add_shape_layer({
compId: [comp ID],
name: "Circle Shape",
shapeType: "ellipse"
})
mcp__ae-mcp__add_shape_layer({
compId: [comp ID],
name: "Star Shape",
shapeType: "star"
})
```
## Expected Result
- Shape layers should now be created successfully
- Each shape should be visible with:
- A white fill
- A black stroke (2px width)
- Proper dimensions (200x200 for rectangles/ellipses, 100px radius for stars/polygons)