# How do I use this for a material?

**URL:** <https://forums.unrealengine.com/t/how-do-i-use-this-for-a-material/315759>\
**Category:** Asset Creation\
**Tags:** paste, unreal-engine, question\
**Created:** [April 20, 2015, 9:27pm UTC](https://forums.unrealengine.com/t/how-do-i-use-this-for-a-material/315759 "2015-04-20T21:27:21Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![roller743](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@roller743](https://forums.unrealengine.com/u/roller743)\
**Post date:** [April 20, 2015, 9:27pm UTC](https://forums.unrealengine.com/t/how-do-i-use-this-for-a-material/315759/1 "2015-04-20T21:27:21Z")

</div>

Begin Object Class=MaterialGraphNode Name=“MaterialGraphNode\_200”  
Begin Object Class=EdGraphPin Name=“EdGraphPin\_3617”  
End Object  
Begin Object Class=EdGraphPin Name=“EdGraphPin\_3616”  
End Object  
Begin Object Class=EdGraphPin Name=“EdGraphPin\_3615”  
End Object  
Begin Object Class=EdGraphPin Name=“EdGraphPin\_3614”  
End Object  
Begin Object Class=MaterialExpressionLinearInterpolate Name=“MaterialExpressionLinearInterpolate\_21”  
End Object  
Begin Object Name=“EdGraphPin\_3617”  
PinName=“Output”  
PinFriendlyName=" "  
Direction=EGPD\_Output  
LinkedTo(0)=EdGraphPin’“MaterialGraphNode\_Root\_2.EdGraphPin\_3591”’

Tutorial said I can paste this into the material editor for the nodes… I am not sure how to paste it in… Thanks

---

<div class="post-metadata">

**Author:** ![roller743](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@roller743](https://forums.unrealengine.com/u/roller743)\
**Post date:** [April 20, 2015, 11:05pm UTC](https://forums.unrealengine.com/t/how-do-i-use-this-for-a-material/315759/2 "2015-04-20T23:05:10Z")

</div>

pls halp me

---

<div class="post-metadata">

**Author:** ![RyanB](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RyanB](https://forums.unrealengine.com/u/RyanB)\
**Post date:** [April 20, 2015, 11:27pm UTC](https://forums.unrealengine.com/t/how-do-i-use-this-for-a-material/315759/3 "2015-04-20T23:27:48Z")

</div>

You should be able to paste in the material editor by using Ctrl + V.

---

<div class="post-metadata">

**Author:** ![roller743](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@roller743](https://forums.unrealengine.com/u/roller743)\
**Post date:** [April 21, 2015, 12:09am UTC](https://forums.unrealengine.com/t/how-do-i-use-this-for-a-material/315759/4 "2015-04-21T00:09:34Z")

</div>

The editor crashed after selecting the “home node” and pressing Ctrl + V

Aftering relaunching Ctrl + V and Command + V do nothing

---

<div class="post-metadata">

**Author:** ![RyanB](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RyanB](https://forums.unrealengine.com/u/RyanB)\
**Post date:** [April 21, 2015, 12:20am UTC](https://forums.unrealengine.com/t/how-do-i-use-this-for-a-material/315759/5 "2015-04-21T00:20:42Z")

</div>

Where did you get that material copy code from?

Try this simple const 0 node which I just copied:

Begin Object Class=MaterialGraphNode Name=“MaterialGraphNode\_2”  
Begin Object Class=MaterialExpressionConstant Name=“MaterialExpressionConstant\_3”  
End Object  
Begin Object Class=EdGraphPin Name=“EdGraphPin\_2620”  
End Object  
Begin Object Name=“MaterialExpressionConstant\_3”  
MaterialExpressionEditorX=-463  
MaterialExpressionEditorY=477  
MaterialExpressionGuid=0E1765054CB0763FD03A4C8FD45B5D36  
Material=PreviewMaterial’/Engine/Transient.M\_50percent\_Test’  
End Object  
Begin Object Name=“EdGraphPin\_2620”  
PinName=“Output”  
PinFriendlyName=" "  
Direction=EGPD\_Output  
End Object  
MaterialExpression=MaterialExpressionConstant’MaterialExpressionConstant\_3’  
Pins(0)=EdGraphPin’EdGraphPin\_2620’  
NodePosX=-463  
NodePosY=477  
NodeGuid=2750A80041698FF8B965C1B2793DF2EA  
End Object

---

<div class="post-metadata">

**Author:** ![roller743](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@roller743](https://forums.unrealengine.com/u/roller743)\
**Post date:** [April 21, 2015, 8:07pm UTC](https://forums.unrealengine.com/t/how-do-i-use-this-for-a-material/315759/6 "2015-04-21T20:07:51Z")

</div>

still not able to paste… Ctrl v and Command v do nothing even after rebinding controls… I don’t understand how to paste that in

---

<div class="post-metadata">

**Author:** ![RyanB](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RyanB](https://forums.unrealengine.com/u/RyanB)\
**Post date:** [May 18, 2015, 11:18pm UTC](https://forums.unrealengine.com/t/how-do-i-use-this-for-a-material/315759/7 "2015-05-18T23:18:48Z")

</div>

I wasn’t able to paste those above nodes myself. Strange. Trying this again:

Begin Object Class=MaterialGraphNode Name=“MaterialGraphNode\_4”  
Begin Object Class=EdGraphPin Name=“EdGraphPin\_208755”  
End Object  
Begin Object Class=MaterialExpressionConstant Name=“MaterialExpressionConstant\_8”  
End Object  
Begin Object Name=“EdGraphPin\_208755”  
PinName=“Output”  
PinFriendlyName=" "  
Direction=EGPD\_Output  
End Object  
Begin Object Name=“MaterialExpressionConstant\_8”  
MaterialExpressionEditorX=64  
MaterialExpressionEditorY=720  
MaterialExpressionGuid=A9C6862B46C4F8AC3334DAB904495948  
Material=PreviewMaterial’/Engine/Transient.M\_AssetPlatform’  
End Object  
MaterialExpression=MaterialExpressionConstant’MaterialExpressionConstant\_8’  
Pins(0)=EdGraphPin’EdGraphPin\_208755’  
NodePosX=64  
NodePosY=720  
NodeGuid=18EEF8594DF048FEA5FE72973A51A476  
End Object

---

<div class="post-metadata">

**Author:** ![RyanB](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RyanB](https://forums.unrealengine.com/u/RyanB)\
**Post date:** [May 18, 2015, 11:23pm UTC](https://forums.unrealengine.com/t/how-do-i-use-this-for-a-material/315759/8 "2015-05-18T23:23:57Z")

</div>

yikes, its even crashing now when I try pasting one of these nodes back. I entered a ticket about this. This is nasty.

---

<div class="post-metadata">

**Author:** ![RyanB](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RyanB](https://forums.unrealengine.com/u/RyanB)\
**Post date:** [May 19, 2015, 5:52pm UTC](https://forums.unrealengine.com/t/how-do-i-use-this-for-a-material/315759/9 "2015-05-19T17:52:28Z")

</div>

Hi, we tracked this issue down and the problem is that the text needs the line breaks for the nodes to copy correctly. So when you copy and paste in a way that removes line breaks it will cause the paste in the editor to fail.

To ensure you always copy safely, make sure you don’t see words like “End Object” in the middle of the line, that always goes on a new line. It may be possible to re-format the text by putting all the correct areas on new-lines but that could be tedious. If you wanted to, just copy another node for an example of the typical spacing of this node-code.

This issue has been created for internal tracking as UE-15804. Hopefully this will be fixed in a future version.
