Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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?


Product Version: UE 4.13
more ▼

asked Sep 12 '16 at 08:07 PM in Packaging & Deployment

avatar image

6 1 3 5

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first

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.

Steve H.

more ▼

answered Sep 13 '16 at 06:44 PM

avatar image SyphK Sep 14 '16 at 10:20 AM

Hi Steve,

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

avatar image Steve Hardister ♦♦ STAFF Sep 14 '16 at 08:33 PM

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.

avatar image BoubQC Nov 16 '16 at 01:28 PM

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

avatar image Steve Hardister ♦♦ STAFF Nov 17 '16 at 07:07 PM

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

avatar image BoubQC Jan 20 '17 at 09:31 PM

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...

avatar image SyphK Sep 14 '16 at 09:59 PM

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

avatar image Thien Nguyen IG Jan 13 '17 at 03:44 PM

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

avatar image Steve Hardister ♦♦ STAFF Jan 13 '17 at 08:52 PM

The documentation is still pending for this feature.

avatar image SyphK Oct 19 '17 at 01:53 PM

Hi Steve,

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


avatar image krittersg Nov 22 '17 at 01:51 PM

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

avatar image anteevy Nov 30 '17 at 09:19 AM

Yeah, me too!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question