Hi. I’m currently customizing a renderFarm using unreal python. The problem I’m having is that there’s something weird about creating a MoviePipelinePrimaryConfig. By default, almost all assets in the Asset Browser are created using the
atl = unreal.AssetToolsHelpers.get_asset_tools()
atl.create_asset(asset_name = "testConfig", package_path = configPath, asset_class = unreal.MoviePipelinePrimaryConfig, factory = unreal.MoviePipelinePrimaryConfigFactory)
I know that it can be generated with But when I run that code, I get
[2024.02.15-10.23.22:961][ 1]LogPython: Error: Traceback (most recent call last):
[2024.02.15-10.23.22:962][ 1]LogPython: Error: File "D:/lhg/python/unreal/preSettingUnreal.py", line 21, in <module>
[2024.02.15-10.23.22:962][ 1]LogPython: Error: make_configPreset(configPath,startFrame,endFrame)
[2024.02.15-10.23.22:963][ 1]LogPython: Error: File "D:/lhg/python/unreal/preSettingUnreal.py", line 12, in make_configPreset
[2024.02.15-10.23.22:963][ 1]LogPython: Error: atl.create_asset(asset_name = "testConfig", package_path = configPath, asset_class = unreal.MoviePipelinePrimaryConfig, factory = unreal.MoviePipelinePrimaryConfigFactory)
[2024.02.15-10.23.22:963][ 1]LogPython: Error: TypeError: AssetTools: Failed to convert parameter 'factory' when calling function 'AssetTools.CreateAsset' on 'Default__AssetToolsImpl'
[2024.02.15-10.23.22:963][ 1]LogPython: Error: TypeError: NativizeProperty: Cannot nativize 'MoviePipelinePrimaryConfigFactory' as 'Factory' (ObjectProperty)
[2024.02.15-10.23.22:964][ 1]LogPython: Error: TypeError: NativizeObject: Cannot nativize 'MoviePipelinePrimaryConfigFactory' as 'Object' (allowed Class type: 'Factory')
As far as I know, the only Factory associated with MoviePipelinePrimaryConfig in the Unreal documentation is MoviePipelinePrimaryConfigFactory, so what else do I need to do?