# convert imported materials to PBR  using a script possible?

**URL:** <https://forums.unrealengine.com/t/convert-imported-materials-to-pbr-using-a-script-possible/69449>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [July 20, 2016, 2:18pm UTC](https://forums.unrealengine.com/t/convert-imported-materials-to-pbr-using-a-script-possible/69449 "2016-07-20T14:18:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![maxbrown](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/maxbrown/32/1194506_2.png) [@maxbrown](https://forums.unrealengine.com/u/maxbrown)\
**Post date:** [July 20, 2016, 2:18pm UTC](https://forums.unrealengine.com/t/convert-imported-materials-to-pbr-using-a-script-possible/69449/1 "2016-07-20T14:18:12Z")

</div>

Hi, a small question: Is it possible to convert / assign materials using a script?

For instance: I import meshes with multi-sub-materials ‘glass’, ‘white\_wood’, etc. Instead of the basic imported materials I like to automatically assign PBR materials ‘M\_glass’ and ‘M\_white\_wood’ that are already in the project. If possible I would also like to assign lightmap channel 1 and a custom resolution to it as well.

Can this be done using blueprints of is there a better way?

regards, Max
