Mocha AE ? Don't end your clip name with ?Base?

First let me say I love Mocha AE and one day hope to own Mocha Pro. Mocha is the best app I’ve used for rotoscoping. That said, I thought I would post this issue in hopes I might save someone the time I spent trying to figure it out. The short story, don’t end your clip name with “Base”.
Inside After Effects CS6, my normal path to kick off the Mocha AE plug-in is to create a composition that contains the clip I intend to track and rotoscope. I highlight my clip’s layer in the timeline and go to the Animation menu to choose: ?Track in mocha AE.? At this point, Mocha AE opens and displays a ?New Project? window. My ?Import Clip? is listed. My project name is pre-populated with the file name prefix. In my case the project name was ?P9-s06-CockpitBase?. You can change your project location, which I did to place it in my Project’s ? Mocha folder. So far so good. I checked the Options and Advanced tabs, no changes needed. Pressed OK and I was off running. I spent the next 3 to 4 hours first tracking and then creating 6 Mattes, saving the project as I went along. Time for a break, things have been going pretty well; so, I closed Mocha AE, saving the file on the way out.
Back again for more rotoscoping, I start up After Effects and head back to my base composition. Just like before I highlight the clip, choose Track in mocha AE from the Animation menu, only this time when Mocha AE starts up, I click on Cancel so that I can load my previous project. I go to my Project’s ? Mocha directory and open project ?P9-s06-CockpitBase.mocha,? only instead of opening the project like normal, I get this interesting Dialog box:
Image: http://forum.imagineersystems.com/attachment.php?attachmentid=401&stc=1&d=1360563529
Hmmm, okay, haven’t seen the ?Relink clip? message before, but I’ll play along; so, I click on Choose… This doesn’t look so bad, Mocha takes me to my original clip’s folder. I choose P9-s06-CockpitBase.avi and click ?Open.? Here’s what I see:
Image: http://forum.imagineersystems.com/attachment.php?attachmentid=400&stc=1&d=1360563471
Now at this point I am getting worried, I see this weird thing where the frame range is 0…0 and the Import frames: area is grayed out, nothing to change there. I press OK hoping for the best, but several error windows pop up. Here are the last two, yikes:
Image: http://forum.imagineersystems.com/attachment.php?attachmentid=402&stc=1&d=1360563625
And after you click through all the error boxes, it all ends with this one:
Image: http://forum.imagineersystems.com/attachment.php?attachmentid=403&stc=1&d=1360563625
Not sure if everyone would get the Debug choice, but you get the idea. Mocha’s not happy. So, what do you do? I’m not going to bore you with all the things I tried that didn’t work, but suffice it to say I tried lots of different media file formats that offered no change in results. Then I opened the mocha project file and here’s what I found.
Image: http://forum.imagineersystems.com/attachment.php?attachmentid=404&stc=1&d=1360563625
Apparently, a default behavior for a mocha project file is to add the word ?Base? to whatever your project or clip name happens to be. So, in my case, ?P9-s06-CockpitBase? became ?P9-s06-CockpitBaseBase? internally. I can’t tell you why this matters, but when I saw this weird repeating in the object name, I decided to re-render my clip with a different name. I chose ?P9-s06-CockpitPlate.? I started over and created a mocha project from this new AVI. This time when I re-opened the saved file, everything was working again. So, now the big question was can I repair the broken mocha project that contains 3 hours worth of rotoscoping?
I opened the mocha project file in my favorite text editor (Notepad++) and did a search and replace. I changed ?P9-s06-CockpitBase? to ?P9-s06-CockpitPlate?. Notice that the ?Base? suffix that mocha adds to the clip name is still intact. (ie. P9-s06-CockpitPlateBase)
Image: http://forum.imagineersystems.com/attachment.php?attachmentid=405&stc=1&d=1360563625
I made sure the ?P9-s06-CockpitPlate.avi? file was in the same directory as the original AVI. Opened the mocha project as before and was back in business. All my mattes were right as I left them. Hope you have similar luck!

Hi there!
Just so you know, we fixed this defect in version 3.1.1, but unfortunately we cannot update the Adobe CS6 version (2.6.2).

Hi there!

Just so you know, we fixed this defect in version 3.1.1, but unfortunately we cannot update the Adobe CS6 version (2.6.2).

First let me say I love Mocha AE and one day hope to own Mocha Pro. Mocha is the best app I’ve used for rotoscoping. That said, I thought I would post this issue in hopes I might save someone the time I spent trying to figure it out. The short story, don’t end your clip name with “Base”.

Inside After Effects CS6, my normal path to kick off the Mocha AE plug-in is to create a composition that contains the clip I intend to track and rotoscope. I highlight my clip’s layer in the timeline and go to the Animation menu to choose: ?Track in mocha AE.? At this point, Mocha AE opens and displays a ?New Project? window. My ?Import Clip? is listed. My project name is pre-populated with the file name prefix. In my case the project name was ?P9-s06-CockpitBase?. You can change your project location, which I did to place it in my Project’s ? Mocha folder. So far so good. I checked the Options and Advanced tabs, no changes needed. Pressed OK and I was off running. I spent the next 3 to 4 hours first tracking and then creating 6 Mattes, saving the project as I went along. Time for a break, things have been going pretty well; so, I closed Mocha AE, saving the file on the way out.

Back again for more rotoscoping, I start up After Effects and head back to my base composition. Just like before I highlight the clip, choose Track in mocha AE from the Animation menu, only this time when Mocha AE starts up, I click on Cancel so that I can load my previous project. I go to my Project’s ? Mocha directory and open project ?P9-s06-CockpitBase.mocha,? only instead of opening the project like normal, I get this interesting Dialog box:

Image: http://forum.imagineersystems.com/attachment.php?attachmentid=401&stc=1&d=1360563529

Hmmm, okay, haven’t seen the ?Relink clip? message before, but I’ll play along; so, I click on Choose… This doesn’t look so bad, Mocha takes me to my original clip’s folder. I choose P9-s06-CockpitBase.avi and click ?Open.? Here’s what I see:

Image: http://forum.imagineersystems.com/attachment.php?attachmentid=400&stc=1&d=1360563471

Now at this point I am getting worried, I see this weird thing where the frame range is 0…0 and the Import frames: area is grayed out, nothing to change there. I press OK hoping for the best, but several error windows pop up. Here are the last two, yikes:

Image: http://forum.imagineersystems.com/attachment.php?attachmentid=402&stc=1&d=1360563625

And after you click through all the error boxes, it all ends with this one:

Image: http://forum.imagineersystems.com/attachment.php?attachmentid=403&stc=1&d=1360563625

Not sure if everyone would get the Debug choice, but you get the idea. Mocha’s not happy. So, what do you do? I’m not going to bore you with all the things I tried that didn’t work, but suffice it to say I tried lots of different media file formats that offered no change in results. Then I opened the mocha project file and here’s what I found.

Image: http://forum.imagineersystems.com/attachment.php?attachmentid=404&stc=1&d=1360563625

Apparently, a default behavior for a mocha project file is to add the word ?Base? to whatever your project or clip name happens to be. So, in my case, ?P9-s06-CockpitBase? became ?P9-s06-CockpitBaseBase? internally. I can’t tell you why this matters, but when I saw this weird repeating in the object name, I decided to re-render my clip with a different name. I chose ?P9-s06-CockpitPlate.? I started over and created a mocha project from this new AVI. This time when I re-opened the saved file, everything was working again. So, now the big question was can I repair the broken mocha project that contains 3 hours worth of rotoscoping?

I opened the mocha project file in my favorite text editor (Notepad++) and did a search and replace. I changed ?P9-s06-CockpitBase? to ?P9-s06-CockpitPlate?. Notice that the ?Base? suffix that mocha adds to the clip name is still intact. (ie. P9-s06-CockpitPlateBase)

Image: http://forum.imagineersystems.com/attachment.php?attachmentid=405&stc=1&d=1360563625

I made sure the ?P9-s06-CockpitPlate.avi? file was in the same directory as the original AVI. Opened the mocha project as before and was back in business. All my mattes were right as I left them. Hope you have similar luck!

Thanks, good to know.

Thanks, good to know.