We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1872270 commit c33f159Copy full SHA for c33f159
setup.py
@@ -9,7 +9,7 @@
9
from setuptools.command.build_ext import build_ext
10
11
NAME = "live2d-py"
12
-VERSION = "0.2.3" # TODO: edit before push
+VERSION = "0.2.4" # TODO: edit before push
13
DESCRIPTION = "Live2D Python SDK"
14
LONG_DESCRIPTION = open("README.md", "r", encoding="utf-8").read()
15
AUTHOR = "Arkueid"
updates.md
@@ -24,10 +24,11 @@ class LAppModel:
24
用例:
25
26
```python
27
-# 设置 part 透明度
28
log.Debug(f"Part Count: {model.GetPartCount()}")
+# 获取模型的 part id 列表(字符串列表)
29
partIds = model.GetPartIds()
30
log.Debug(f"Part Ids: {partIds}")
31
+# 通过 part id 在列表中的 index 来设置其透明度
32
model.SetPartOpacity(partIds.index("PartHairBack"), 0.5)
33
```
34
0 commit comments