# custom expression material attribute input type

**URL:** <https://forums.unrealengine.com/t/custom-expression-material-attribute-input-type/691569>\
**Category:** International\
**Tags:** unreal-engine, UE5-0, custom-nodes\
**Created:** [November 16, 2022, 12:53am UTC](https://forums.unrealengine.com/t/custom-expression-material-attribute-input-type/691569 "2022-11-16T00:53:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dranik](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dranik](https://forums.unrealengine.com/u/dranik)\
**Post date:** [November 16, 2022, 12:53am UTC](https://forums.unrealengine.com/t/custom-expression-material-attribute-input-type/691569/1 "2022-11-16T00:53:51Z")

</div>

I’m trying to use material attributes as an input for Custom Expression. It handles it as MaterialFloat3 type(which causes compilation error), which is strange because CE has FMaterialAttributes output type and fine with it.  
Can I force the type or workaround this somehow?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/0/2/20280db31e762b79a782e231bb7f3c9130b2d3f0.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f1eb5a71](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f1eb5a71](https://forums.unrealengine.com/u/anonymous_user_f1eb5a71)\
**Post date:** [November 16, 2022, 1:09am UTC](https://forums.unrealengine.com/t/custom-expression-material-attribute-input-type/691569/2 "2022-11-16T01:09:20Z")

</div>

Thanks a lot for sharing this thread here. I would like to know more about it. 🙂
