K k3b3 Активный участник Рейтинг 16 18 июн 2023 #1 Как удалить с помощью питон все модификаторы выделенных объектов по классу (например meshsmooth) Пока то, что нашел nodes = rt.getCurrentSelection() for node in nodes: mods = node.modifiers for mod in mods: cl = rt.classOf(mod) print(cl) rt.deleteModifier(node, mod)
Владислав Бодюл Активный участник Рейтинг 15 18 июн 2023 #2 for o in rt.selection: for m in rt.getClassInstances(rt.MeshSmooth, target=o): rt.deleteModifier(o, m)
K k3b3 Активный участник Рейтинг 16 18 июн 2023 #3 Владислав Бодюлfor o in rt.selection: for m in rt.getClassInstances(rt.MeshSmooth, target=o): rt.deleteModifier(o, m)Спасибо большое
k3b3
Пока то, что нашел
nodes = rt.getCurrentSelection()
for node in nodes:
mods = node.modifiers
for mod in mods:
cl = rt.classOf(mod)
print(cl)
rt.deleteModifier(node, mod)
Владислав Бодюл
for o in rt.selection: for m in rt.getClassInstances(rt.MeshSmooth, target=o): rt.deleteModifier(o, m)k3b3