# Movie Render Graph - Metadata Scripting

**URL:** <https://forums.unrealengine.com/t/movie-render-graph-metadata-scripting/2524097>\
**Category:** Programming & Scripting\
**Tags:** Python, unreal-engine, Scripting, question\
**Created:** [May 23, 2025, 6:30am UTC](https://forums.unrealengine.com/t/movie-render-graph-metadata-scripting/2524097 "2025-05-23T06:30:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ethwynn](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ethwynn](https://forums.unrealengine.com/u/Ethwynn)\
**Post date:** [May 23, 2025, 6:30am UTC](https://forums.unrealengine.com/t/movie-render-graph-metadata-scripting/2524097/1 "2025-05-23T06:30:07Z")

</div>

I’m trying to access and change Metadata Attributes from the Set Metadata Attributes node in Movie Render Graph using Python scripting.

 ![スクリーンショット 2025-05-23 152156](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/8/c/58c25f7b6c7cbbf073374bf7be7e2ae600fbcf3c.png)

I can access the array of Metadata Attributes and append to it but I don’t know how I can modify already existing attributes.

Here is how I’m trying to do it :

```auto
# Get Metadata Attribute Collection
metadata_attributes_node.set_editor_property("override_metadata_attribute_collection", True)
metadata_collection = metadata_attributes_node.get_editor_property("metadata_attribute_collection")

#Get Metadata Attribute Array From Collection
metadata_attributes = metadata_collection.get_editor_property("metadata_attributes")

# Check Actual Attributes
unreal.log("Attributes before change :")
for attribute in metadata_attributes:
    unreal.log(attribute.get_editor_property("name"))
    unreal.log(attribute.get_editor_property("value"))

metadata_attributes.append(unreal.MovieGraphMetadataAttribute("New Attribute", "2", True))
metadata_attributes[0].set_editor_property("name", "New Name")
metadata_attributes[0].set_editor_property("value", "New Value")

# Check Attributes After Change
unreal.log("Attributes after change :")
for attribute in metadata_attributes:
    unreal.log(attribute.get_editor_property("name"))
    unreal.log(attribute.get_editor_property("value"))

```

And what I get as a result :

```auto
LogPython: Attributes before change :
LogPython: First Attribute
LogPython: First Value
LogPython: Attributes after change :
LogPython: First Attribute
LogPython: First Value
LogPython: New Attribute
LogPython: 2

```

I’m new to Python and Unreal scripting so I thought it might be a basic error like accessing a copy instead of the object reference but I don’t know how to check.
