0
点赞
收藏
分享

微信扫一扫

UE4/5 批量进行贴图Texture压缩、修改饱和度

天行五煞 2023-10-26 阅读 54

该插件下载地址:

🍞正在为您运送作品详情icon-default.png?t=N7T8https://mbd.pub/o/bread/ZZWYmpxw
适用于 UE4 4.25/4.26/4.27 UE5 以上版本

在Edit - Plugins中分别开启

插件 Python Editor Script Plugin

插件 Editor Scripting Utilites

如果会python代码,可以参照下面代码自己写一下:


python代码

1.获取到所选的texture

# 获取当前的编辑器对象
editor_util = unreal.EditorUtilityLibrary.get_selected_assets()

2.获取列表的texture

# 过滤该列表,使之只包含Texture2D贴图。

myTextures = unreal.EditorFilterLibrary.by_class(editor_util, unreal.Texture2D)

3.写一个方法,将texture进行maxsize的设置

texture.set_editor_property('max_texture_size', MaxSize)

效果:

同时,可以配合editor blueprint ,添加到右键菜单中:

同时,你还可以继续修改其它参数,

如,批量修改贴图的饱和度:

举报

相关推荐

0 条评论