przemir/ApplyModifierForObjectWithShapeKeys
소개
Blender script
디자인 및 미디어측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalApplyModifierForObjectWithShapeKeys
Blender script
Apply modifiers and remove them from the stack for objects with shape keys. (Pushing 'Apply' in the 'Object modifiers' tab results in the error 'Modifier cannot be applied to a mesh with shape keys').
Usage
Press 'F3' and choose 'Apply modifier for object with shape keys'.

Usage in script
In case you want to use addon's method in script/exporter here is sample usage:
import bpy
import time
import ApplyModifierForObjectWithShapeKeys
modifiers = ['Subdivision']
ApplyModifierForObjectWithShapeKeys.applyModifierForObjectWithShapeKeys(bpy.context, modifiers, True)
Modifiers are identified by name.
Last parameter is 'Don't include armature deformation' and by default is set to true.
Note that method assumes object is selected.
Installation
Select "File -> User Preferences" and choose "Addon" tab. Click "Install from file..." and choose the downloaded file (only "ApplyModifierForObjectWithShapeKeys.py", not the folder).
How the script works
The object is duplicated to match the number of shapekeys. For each object, all but one shape key is removed, with each object having a different shape key. Then, each object applies the selected modifier. After that, all objects are merged into one as shape keys. Note that this solution may not work for modifiers which change the amount of vertices for different shapes (for example, 'Boolean' modifier, or 'Mirror' with merge option).
Algorithm changed! Now instead of copying all objects to list, they are handled one by one. There will be maximum 3 copies of objects (including original object) at time. It should be less memory consuming for heavier models with many shape keys that way.
관련 프로젝트 살펴보기
불러오는 중…