-
Fixing “unterminated string constant” error when parenting clone stamp to tracker
I am using the clone stamp in combination with tracking data applied to a null object in order to remove objects without using the photoshop method. This method is much better when there are lighting changes and linear camera moves.
The clone stamp is applied to remove the object on the first frame and then I parent the “transform: position” and “clone source: clone position” parameters of the brush stroke to the position keyframes of the null object with the tracking data applied. This moves the brush stroke to wherever the null object is so I use an expression to offset the position of each parameter by the difference in position of the null object and the brush stroke. So far it is ideal when the camera does simple moves like pans or tilts so that clone position and source move together through the frame.
The expression looks like:
thisComp.layer(”
logotrack”)-[1695.3788-1820.75, 2015.621-2104.25]Now it gives me an unterminated string constant error. I updated to AE CC 2017 hoping this would fix it but it does not. When I delete the line break in the expression…
thisComp.layer(“logotrack”)-[1695.3788-1820.75, 2015.621-2104.25]
…it then tells me that the parent layer “logotrack” is missing or does not exist, but it never is. I don’t know what’s going on and this started happening all of a sudden and is preventing me from finishing my project.
Is there a way to parent the clone brush position and clone source to position data of a null object without running into these errors?