How to set editor property in Python? Undefined property names?

Hey,

I am currently working with Python and Unreal Studio(beta) and trying to access the Sequence Recorder properties, but I can’t access any of them. What help tells me is to do something like this:

unreal.SequenceRecorderSettings.set_editor_property(sequence_name, 'RecordedSequence')

Is there something wrong with this?
Also there is something confusing about what help tells me: ‘ensuring that the pre/post change notifications are called’. What does this mean? Does it tell me to use the unreal.SequenceRecorderSettings.modify -function?

Best Regards

This may or may not help. This is how you set default blueprint properties. You have to get the default class

ut_asset = “/Game/Brushes/CustomBrushes/test_brush”

unreal.EditorAssetLibrary.duplicate_asset(in_asset, out_asset)

get the generated class

blueprint_generated = unreal.EditorAssetLibrary.load_blueprint_class(out_asset)

from that, get the class default object ( the actual template for the blueprint )

blueprint_class_default = unreal.get_default_object(blueprint_generated)

set or get properties

blueprint_class_default.set_editor_property(“Name”, “Testy”)
unreal.EditorAssetLibrary.save_asset(out_asset)

1 Like