# Get InCaptureSettings for rendermovie function from sequence file or render movie programatically

**URL:** <https://forums.unrealengine.com/t/get-incapturesettings-for-rendermovie-function-from-sequence-file-or-render-movie-programatically/147771>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [July 20, 2020, 8:40am UTC](https://forums.unrealengine.com/t/get-incapturesettings-for-rendermovie-function-from-sequence-file-or-render-movie-programatically/147771 "2020-07-20T08:40:46Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![shenron](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@shenron](https://forums.unrealengine.com/u/shenron)\
**Post date:** [July 20, 2020, 8:40am UTC](https://forums.unrealengine.com/t/get-incapturesettings-for-rendermovie-function-from-sequence-file-or-render-movie-programatically/147771/1 "2020-07-20T08:40:46Z")

</div>

I have a level sequence file & I’m trying to programatically(bluerprint or c++) render it to movie file without using sequncer GUI.  
**How to get the input paramenter  
InCaptureSettings**(object type:"MovieSceneCapture) for

**render movie** function in

**Unreal sequencer tools Function Library**.

 ![Capture.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/0/7/07dc6440c421a0c86ee66c693536c381c48521ab.png)  
If anyone has anyother method to render a movie without going through GUI of sequncer would be helpful.

Thanks,  
Rahul

---

<div class="post-metadata">

**Author:** ![Natalo77](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Natalo77](https://forums.unrealengine.com/u/Natalo77)\
**Post date:** [July 20, 2020, 8:42am UTC](https://forums.unrealengine.com/t/get-incapturesettings-for-rendermovie-function-from-sequence-file-or-render-movie-programatically/147771/2 "2020-07-20T08:42:36Z")

</div>

InCaptureSettings just looks like a data-only blueprint that you could create in that same code.

OnClicked –\> Create MovieSceneCapture Object –\> RenderMovie

---

<div class="post-metadata">

**Author:** ![shenron](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@shenron](https://forums.unrealengine.com/u/shenron)\
**Post date:** [July 20, 2020, 11:09am UTC](https://forums.unrealengine.com/t/get-incapturesettings-for-rendermovie-function-from-sequence-file-or-render-movie-programatically/147771/3 "2020-07-20T11:09:10Z")

</div>

![Capture.PNG.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/d/2/d2a7e8f36644503d86933ff63b33366e6106dc5c.jpeg)  
Hi, Natalo77.  
Thanks for reply.

But, I have a sequence file. How do I get the\*\* MovieSceneCapture \*\*data from sequence. there is no function in BP to create \*\*MovieSceneCapture.  
On clicked \*\*is just a button I created to test, later I shall put it into code so I wont have to go through U.I at all.

---

<div class="post-metadata">

**Author:** ![Natalo77](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Natalo77](https://forums.unrealengine.com/u/Natalo77)\
**Post date:** [July 20, 2020, 12:39pm UTC](https://forums.unrealengine.com/t/get-incapturesettings-for-rendermovie-function-from-sequence-file-or-render-movie-programatically/147771/4 "2020-07-20T12:39:14Z")

</div>

> [@shenron](#):
>
> ![Capture.PNG.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/d/2/d2a7e8f36644503d86933ff63b33366e6106dc5c.jpeg)  
> Hi, Natalo77.  
> Thanks for reply.
> 
> But, I have a sequence file. How do I get the\*\* MovieSceneCapture \*\*data from sequence. there is no function in BP to create \*\*MovieSceneCapture.  
> On clicked \*\*is just a button I created to test, later I shall put it into code so I wont have to go through U.I at all.

You can use the ‘Construct Object from Class’ Node, shown on the left, and select ‘MovieSceneCapture’ in the Class Field, shown on the right.

 ![Capture.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/a/c/ac9aa9682e8880cdd3ff6ca2867d86564de6afa7.png)

---

<div class="post-metadata">

**Author:** ![shenron](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@shenron](https://forums.unrealengine.com/u/shenron)\
**Post date:** [July 20, 2020, 1:02pm UTC](https://forums.unrealengine.com/t/get-incapturesettings-for-rendermovie-function-from-sequence-file-or-render-movie-programatically/147771/5 "2020-07-20T13:02:57Z")

</div>

Thanks alot Natalo.That fixed the movie capture variable.  
But, when I render movie from code, it begins rendering and stuck there. Doesnt do anything. But when I click render movie from GUI of sequencer it renders movie. The sequence has 2 actors doing nothing, a simple test sequencer file.  
​

 ![Capture.PNG.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/6/6/66091efef62770d0376b6bf1f833c9ae5a418194.jpeg)​

But when I click render movie from GUI of sequencer it renders movie.  
The test code is simple and straight forward.

 ![Capture3.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/2/4/242537d0febc52e4509a3f45888b208727d3d591.png)

---

<div class="post-metadata">

**Author:** ![Natalo77](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Natalo77](https://forums.unrealengine.com/u/Natalo77)\
**Post date:** [July 20, 2020, 6:41pm UTC](https://forums.unrealengine.com/t/get-incapturesettings-for-rendermovie-function-from-sequence-file-or-render-movie-programatically/147771/6 "2020-07-20T18:41:24Z")

</div>

> [@shenron](#):
>
> Thanks alot Natalo.That fixed the movie capture variable.  
> But, when I render movie from code, it begins rendering and stuck there. Doesnt do anything. But when I click render movie from GUI of sequencer it renders movie. The sequence has 2 actors doing nothing, a simple test sequencer file.  
> ​
> 
> ![Capture.PNG.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/6/6/66091efef62770d0376b6bf1f833c9ae5a418194.jpeg)​
> 
> But when I click render movie from GUI of sequencer it renders movie.  
> The test code is simple and straight forward.
> 
> ![Capture3.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/2/4/242537d0febc52e4509a3f45888b208727d3d591.png)

Well yeah.

You’ve constructed a blank MovieSceneCapture object.

You need to take a look at the documentation for it to figure out what data you need to set within it so that it should work.

---

<div class="post-metadata">

**Author:** ![shenron](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@shenron](https://forums.unrealengine.com/u/shenron)\
**Post date:** [July 21, 2020, 7:03am UTC](https://forums.unrealengine.com/t/get-incapturesettings-for-rendermovie-function-from-sequence-file-or-render-movie-programatically/147771/7 "2020-07-21T07:03:53Z")

</div>

Well, its not a blank movie scene object. Test Level Sequence has a valid level sequence file as input. That brings back to my initial question in the post, how to get movie scene capture from level sequence.  
I plugged in a level sequence to create a scene capture object, but there seems to be some data missing.

UMovieSceneCapture has too many variables, not sure what data to set .  
[https://docs.unrealengine.com/en-US/…ure/index.html](https://docs.unrealengine.com/en-US/API/Runtime/MovieSceneCapture/UMovieSceneCapture/index.html)

---

<div class="post-metadata">

**Author:** ![Natalo77](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Natalo77](https://forums.unrealengine.com/u/Natalo77)\
**Post date:** [July 21, 2020, 8:41am UTC](https://forums.unrealengine.com/t/get-incapturesettings-for-rendermovie-function-from-sequence-file-or-render-movie-programatically/147771/8 "2020-07-21T08:41:02Z")

</div>

> [@shenron](#):
>
> Well, its not a blank movie scene object. Test Level Sequence has a valid level sequence file as input. That brings back to my initial question in the post, how to get movie scene capture from level sequence.  
> I plugged in a level sequence to create a scene capture object, but there seems to be some data missing.
> 
> UMovieSceneCapture has too many variables, not sure what data to set .  
> [https://docs.unrealengine.com/en-US/…ure/index.html](https://docs.unrealengine.com/en-US/API/Runtime/MovieSceneCapture/UMovieSceneCapture/index.html)

Try changing the Settings and initSettings variables, then on the callback event, run the Finalize method
