Body: <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>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-07-16T09:56:36.410Z
Comments.Text: 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, ...'
Comments.UserDisplayName: tomh
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-07-16T22:14:29.787Z
Comments.Text: This question is a little broad. Can you specify what problem you're having?
Comments.UserDisplayName: stib
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-07-17T07:23:48.763Z
Comments.Text: 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.
Comments.UserDisplayName: stib
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-07-20T13:52:30.967Z
Comments.Text: @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.
Comments.UserDisplayName: thesfax
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-07-21T01:00:57.440Z
Comments.Text: Sure, can you be specific about what problems you're having?
Comments.UserDisplayName: stib
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-07-21T11:01:08.017Z
Comments.Text: 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.
Comments.UserDisplayName: thesfax
Tags: <after-effects><after-effects-scripting>
Title: Need a script to import Rotoscoping mask
UserDisplayName: thesfax
ThreadText: # 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
  
  