# Rendering Widget to a file

**URL:** <https://forums.unrealengine.com/t/rendering-widget-to-a-file/268125>\
**Category:** Rendering\
**Tags:** unreal-engine, question, UE4-27\
**Created:** [December 24, 2021, 11:27am UTC](https://forums.unrealengine.com/t/rendering-widget-to-a-file/268125 "2021-12-24T11:27:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mwojt-platige](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mwojt-platige](https://forums.unrealengine.com/u/mwojt-platige)\
**Post date:** [December 24, 2021, 11:27am UTC](https://forums.unrealengine.com/t/rendering-widget-to-a-file/268125/1 "2021-12-24T11:27:03Z")

</div>

I’m implementing a C++ plugin for the Movie Render Queue. My main goal is to probe some metadata and for every shot in a sequence render a widget, which is inherited from MoviePipelineBurninWidget.

My main questions are:

1. How to get an instance of a widget in C++? The widget itself is not a C++ class, just a regular blueprint widget I keep inside the plugin’s content directory. I don’t know how to access it when calling:

```auto
CreateWidget<UUserWidget>(*/plugin content dir?*/, MyWidget);

```

1. How to render widget to a file? I’m not using it as a texture, just as a final output of the render queue.
