# How to create RigVMStructNode with python?

**URL:** <https://forums.unrealengine.com/t/how-to-create-rigvmstructnode-with-python/485045>\
**Category:** Editor Scripting\
**Tags:** Python, unreal-engine, question\
**Created:** [June 18, 2021, 6:59am UTC](https://forums.unrealengine.com/t/how-to-create-rigvmstructnode-with-python/485045 "2021-06-18T06:59:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SITT](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SITT](https://forums.unrealengine.com/u/SITT)\
**Post date:** [June 18, 2021, 6:59am UTC](https://forums.unrealengine.com/t/how-to-create-rigvmstructnode-with-python/485045/1 "2021-06-18T06:59:23Z")

</div>

hey, i want to create ControlRig with Python  
but, i donot know how toi create RigVMStructNode like RigUnit\_SetCurveValue

##########################################

```
import unreal

selObj = unreal.EditorUtilityLibrary.get_selected_assets()
print(type(selObj[0]) == unreal.ControlRigBlueprint)
rigVMC = selObj[0].controller

sc = unreal.RigUnit_SetCurveValue()

rigVMC.add_struct_node(sc, "Execute", position=[0.0, 0.0], node_name='', undo=True)

```

###########################

LogPython: Error: rigVMC.add\_struct\_node(sc, “Execute”, position=[0.0, 0.0], node\_name=’’, undo=True)  
LogPython: Error: TypeError: RigVMController: Failed to convert parameter ‘script\_struct’ when calling function ‘RigVMController.AddStructNode’ on ‘RigVMController\_0’  
LogPython: Error: TypeError: NativizeProperty: Cannot nativize ‘RigUnit\_SetCurveValue’ as ‘InScriptStruct’ (ObjectProperty)  
LogPython: Error: TypeError: NativizeObject: Cannot nativize ‘RigUnit\_SetCurveValue’ as ‘Object’ (allowed Class type: ‘ScriptStruct’)
