Skip to content

Commit

Permalink
v0.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Arkueid committed Oct 11, 2024
1 parent 1872270 commit c33f159
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from setuptools.command.build_ext import build_ext

NAME = "live2d-py"
VERSION = "0.2.3" # TODO: edit before push
VERSION = "0.2.4" # TODO: edit before push
DESCRIPTION = "Live2D Python SDK"
LONG_DESCRIPTION = open("README.md", "r", encoding="utf-8").read()
AUTHOR = "Arkueid"
Expand Down
3 changes: 2 additions & 1 deletion updates.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ class LAppModel:
用例:

```python
# 设置 part 透明度
log.Debug(f"Part Count: {model.GetPartCount()}")
# 获取模型的 part id 列表(字符串列表)
partIds = model.GetPartIds()
log.Debug(f"Part Ids: {partIds}")
# 通过 part id 在列表中的 index 来设置其透明度
model.SetPartOpacity(partIds.index("PartHairBack"), 0.5)
```

Expand Down

0 comments on commit c33f159

Please sign in to comment.