Creating Blueprint node graph for material with Python?

This is how you create a new blueprint asset:

my_utils.py.PNG


As you can see in vr_project.py, the name of the file that should be created is BP_VRMainCharacter.

In **blueprint.create(name, path, unreal.Character) **the third parameter is the parent class that defines the type of the blueprint being created. So, try changing this to a material type. Which material type? Maybe there is a material type you can find in the Documenation:

https://docs.unrealengine.com/en-US/PythonAPI/index.html


I’m stuck on something else… once the Blueprint is created… is there a way to script adding Event Graph nodes into the Blueprint?

For example, is it possible to create the Event Graph pictured below with python script?

3 Likes