Reimport assets from command line

I need to be able to cook assets through the command line. The problem is that I’ll need to modify the source of the assets (e.g. fbx files), and before cooking I need to re-import them for the changes to take effect.
I need this process to be automated so I can’t open the editor and re-import them myself.

Is there a way to achieve this?

Thanks

Hi Syphk:

Have you read the documentation on Content Cooking? If I understand you correctly, you are trying to do what is described here: Patching. -only through the command line, which you may be able piece together between the those articles but we do not officially support this.

.

Hi ,

I’ve already read them both, but I can’t find a solution. The problem is that I need to automate this process. It should go like this: the project has a shared folder that is monitored for content changes (configured in the Editor Preferences). Someone from the art team makes changes to an fbx and texture, in the shared folder. I need unreal to automatically detect those changes when I run the “run=cook” command (so they are re-imported). The assets are always going to be the same, so I can specify them manually in the command. The part that is missing is the auto-reimport, because I need this process to be automated and the auto-reimport feature only works when I open the Editor in a window.

Thanks for your help

This functionality is not currently supported in the engine but is being considered. As it stands you must open the editor in order to convert the fbx files to uasset files.

Alright thanks :slight_smile:
I might try to make it by editing the source code but it doesn’t look to be a simple task.

Any idea where you are at on this? Would need this feature too.

This feature has been added to UE4.14. The documentation is pending for this feature, however.

I’m also interested in this. Could you post a link to the documentation on how to do this?

The documentation is still pending for this feature.

Do you have a filename so I can check the code and see what I can do?

Can you import for the first time with this? Can you specify settings…

Hi ,

Still waiting for this. Is there documentation, or can you provide a simple example?

Thanks

Hi , I too am interested in this documentation/feature. Thanks

Yeah, me too!

One more interested soul…

Any updates on this?