Using EditorDataprepAssetLibrary class I can add an action to the existing dataprep asset like this:
dataprep_asset_library = unreal.EditorDataprepAssetLibrary()
dataprep_action = dataprep_asset_library.add_action(dataprep_asset)
There are also many predefined classes in the unreal module, that can be added as a step to the newly created action. For example, to add a step for material replacement I would write:
dataprep_step = dataprep_asset_library.add_step(dataprep_action, unreal.DataprepSubstituteMaterialByTableOperation)
Now I have created a user-defined operation:
and would like to add it as a step to the dataprep action.
How could it be done?
The ‘add_step’ function only accepts the class (basically the type) of the step. I actually see no way to add an existing class as a step…
Do I miss something or is there a workaround for that?
Best regards,
AK