x

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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Batch change Reduction Settings for static mesh

I need to be able to batch edit the 'percent triangles' for hundreds of unique static meshes. I have looked in the 'property matrix' for this option, but am unable to figure out how to change these in masses.

alt text

Product Version: UE 4.21
Tags:
more ▼

asked Jan 04 '19 at 02:19 PM in Using UE4

avatar image

Keith.Kimble
1 1

avatar image Stephen Ellis ♦♦ STAFF Jan 04 '19 at 03:51 PM

Hi Keith.

I've noticed that you have access to the UDN, our dedicated support site. Whereas this is the Answerhub, for community-based support.

For any future support needs, you will want to make sure that you are using the UDN instead, where Epic staff will be sure to see and respond to your post.

Cheers

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

1 answer: sort voted first

Hey Keith, I'm assuming that your intent here is to re-generate the LODs after you set that "percent triangles" value -- basically pushing the Apply Changes button for all the assets.

In that case, you could use a Python or Blueprint editor script to run through the assets and re-generate the LODs programmatically. There's a page in the docs that shows how to do this here:

https://docs.unrealengine.com/en-us/Editor/Scripting-and-Automating-the-Editor/Editor-Scripting-How-Tos/Creating-Levels-of-Detail-in-Blueprints-or-Python

I was able to do this using the first sample script on that page, changing the reduction settings to:

 options.reduction_settings = [ unreal.EditorScriptingMeshReductionSettings(0.6, 1.0)
 ]

Basically you get a list of the assets you want to handle, and iterate through them. Your script loads each one in turn and re-generates its LODs, supplying the reduction percentage you want to use. Then you save each modified asset.

Hope that helps!

more ▼

answered Jan 04 '19 at 03:47 PM

avatar image

Ro-Su- STAFF
11 3 1

avatar image Keith.Kimble Jan 04 '19 at 04:36 PM

Thanks, I have read that page in the docs, but unsure where and how the script is implemented. I have tried the 'execute python script' option, but with no luck.

Thanks

avatar image Keith.Kimble Jan 04 '19 at 05:09 PM

I believe I was able to get the script from the LOD page (Attached image) to work. I am assuming that was the script in reference to the answer to the original question...

alt text

5.jpg (99.3 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
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