<p>I am looking to perform rotoscoping on one of my videos.
I have found <a href="http://clearvid.io/" rel="nofollow noreferrer">Clearvid.io</a> online service that performs rotoscoping. They provide the points of the resultant masks of rotoscoping in a text file that can be imported into after effects.</p>

<p>Ask:
I need some help in writing a script that imports these points into Adobe after effects.</p>

<p>Any help is greatly appreciated.</p>

<p>Please find the input video file and the file containing the masks <a href="https://www.dropbox.com/s/e4ljtwdn8dnskt6/clearvid_7xfdjfbrjdt.zip" rel="nofollow noreferrer">here</a>.</p>

<p>Thank you.</p>

CC BY-SA 4.0
2019-07-16T09:56:36.410Z
from the text file: 

The format of the file is as follows:
- Frame number
  format - 'frame: ..'
- Number of points for the mask in this frame
  format - 'points: ..'
- Set of points specified as a series of concatenated x, y co-ordinates
  format - 'x1, y1, x2, y2, ...'
tomh
CC BY-SA 4.0
2019-07-16T22:14:29.787Z
This question is a little broad. Can you specify what problem you're having?
stib
CC BY-SA 4.0
2019-07-17T07:23:48.763Z
Can I just say that the results look pretty bad. You would get better results using AE's built in roto-brush. Also the mask points are just points, they don't have Bézier handles, so they're just straight lines. I would question whether it was worth the time and effort involved writing a script for this. But I don't know your use case.
stib
CC BY-SA 4.0
2019-07-20T13:52:30.967Z
@stib Yeah, I agree with you. Result for this one is not that good. 
I'm not an expert at this and am looking for a service that could perform basic rotoscoping which can later be fine-tuned in AE with minimal effort and time. 
I got the result for another couple of videos and they are pretty good - can be found [here](https://www.dropbox.com/s/e4ljtwdn8dnskt6/clearvid_7xfdjfbrjdt.zip?dl=0). It would be great if you could help me with the script to import it as rotobrush result. I believe such a code will be useful for anyone like me.
thesfax
CC BY-SA 4.0
2019-07-21T01:00:57.440Z
Sure, can you be specific about what problems you're having?
stib
CC BY-SA 4.0
2019-07-21T11:01:08.017Z
Could you help me get/make a script so that I can import the binary mask co-ordinates into AfterEffects as a roto brush result so that I can modify it further? Thanks for the help.
thesfax
<after-effects><after-effects-scripting>
Need a script to import Rotoscoping mask
thesfax
# Need a script to import Rotoscoping mask

(Asked by: username_0 on 2019-07-15)

I am looking to perform rotoscoping on one of my videos.
I have found [Clearvid.io](http://clearvid.io/) online service that performs rotoscoping. They provide the points of the resultant masks of rotoscoping in a text file that can be imported into after effects.

Ask:
I need some help in writing a script that imports these points into Adobe after effects.

Any help is greatly appreciated.

Please find the input video file and the file containing the masks [here](https://www.dropbox.com/s/e4ljtwdn8dnskt6/clearvid_7xfdjfbrjdt.zip).

Thank you.

**Tags:** after-effects, after-effects-scripting

> **Comments:**
> **username_1**: from the text file:   The format of the file is as follows: - Frame number   format - 'frame: ..' - Number of points for the mask in this frame   format - 'points: ..' - Set of points specified as a series of concatenated x, y co-ordinates   format - 'x1, y1, x2, y2, ...'  
> **username_2**: This question is a little broad. Can you specify what problem you're having?  
> **username_2**: Can I just say that the results look pretty bad. You would get better results using AE's built in roto-brush. Also the mask points are just points, they don't have Bézier handles, so they're just straight lines. I would question whether it was worth the time and effort involved writing a script for this. But I don't know your use case.  
> **username_0**: @username_2 Yeah, I agree with you. Result for this one is not that good.  I'm not an expert at this and am looking for a service that could perform basic rotoscoping which can later be fine-tuned in AE with minimal effort and time.  I got the result for another couple of videos and they are pretty good - can be found [here](https://www.dropbox.com/s/e4ljtwdn8dnskt6/clearvid_7xfdjfbrjdt.zip?dl=0). It would be great if you could help me with the script to import it as rotobrush result. I believe such a code will be useful for anyone like me.  
> **username_2**: Sure, can you be specific about what problems you're having?  
> **username_0**: Could you help me get/make a script so that I can import the binary mask co-ordinates into AfterEffects as a roto brush result so that I can modify it further? Thanks for the help.  

---

## 0 answers

