How to edit Blueprint default variable via editor scripting?

An alternative through python. You can run python script through blueprints.

import unreal

bp_object = unreal.EditorAssetLibrary.load_blueprint_class('/game/BP_Modif_Default')
bp_default_oject = unreal.get_default_object(bp_object)
bp_default_oject.set_editor_property("age",21)
1 Like