Skip to main content
Common Form
Participant
August 7, 2022
Answered

Mocha exporting spline data

  • August 7, 2022
  • 2 replies
  • 933 views

Is there a way to export spline data using Mocha AE? To be clear, I know that 'planar surface' data are exported by 'Create Track Data,' but I'm trying to export the spline points as well (made using Rectangle Spline).

This topic has been closed for replies.
Correct answer Jose Panadero

If you are using the latest Mocha AE plugin versions included in AE, you can do it. Instead of using tracking data you can access spline data and convert it into native AE masks using the Matte category in the Mocha AE plugin. Under the Visible Layers option you can select what spline created in Mocha will be used. Then click on the CREATE AE MASKS button.

2 replies

Jose Panadero
Community Expert
Jose PanaderoCommunity ExpertCorrect answer
Community Expert
August 7, 2022

If you are using the latest Mocha AE plugin versions included in AE, you can do it. Instead of using tracking data you can access spline data and convert it into native AE masks using the Matte category in the Mocha AE plugin. Under the Visible Layers option you can select what spline created in Mocha will be used. Then click on the CREATE AE MASKS button.

Common Form
Participant
August 7, 2022

Thanks so much Jose, that worked! Would it be possible to then extract the spline vertex locations from the mask information? FWIW, the spline consists of 4 points (tracking a picture on a wall).

Common Form
Participant
August 8, 2022

I seemed to have found the solution - well, not so straightforward but definitely works. Thanks Jose for pointing me in the right direction.

For those that are needing the same solution:

After making the mask, I had to write a script - the key line is as follows:

var pathVerts = app.project.item(1).layer("Shape Layer 1").property("Contents").property("Path 1").property("Path").valueAtTime((i*thisComp.frameDuration), false).vertices;
Mylenium
Legend
August 7, 2022

Spline data can be exported using the Pro version and the respective plug-ins.

 

Mylenium

Common Form
Participant
August 7, 2022

Thanks Mylenium - can you please elaborate on the process? I don't yet have the Pro version but I'd gladly purchase it if I knew I could export the spline data. Cheers!