cgai-path-0.0.8
توضیحات
Easy operation of file path for CG industry.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | cgai-path-0.0.8 |
| نام | cgai-path |
| نسخه کتابخانه | 0.0.8 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Master Zhang |
| ایمیل نویسنده | 360014296@qq.com |
| آدرس صفحه اصلی | https://github.com/zxzxde/cgai-path |
| آدرس اینترنتی | https://pypi.org/project/cgai-path/ |
| مجوز | - |
#cgai-path
#### 功能
应用于CG行业的文件路径
#### 基本使用
```python
import os
from cgai_path import CGAIPATH
p = r'C:\PyOut\Test\test_hiero\v001\musk_%04d.exr'
cpath = CGAIPATH()
# 判断提供的路径是否为序列
result = cpath.isSequence(p)
print(result) # ('C:\\PyOut\\Test\\test_hiero\\v001\\musk_', '%04d')
if result:
filename = cpath.get_filename(p)
print(filename) # musk
# 获取文件序列
paths,missings = cpath.get_files(p)
print(paths) # ['C:\\PyOut\\Test\\test_hiero\\v001\\musk_0001.exr',...,'C:\\PyOut\\Test\\test_hiero\\v001\\musk_0049.exr']
print()
print(missings)
a = r'C:\PyOut\Test\test_hiero\v001\musk_0001.exr'
# 获取文件名称
filename = cpath.get_filename(a)
print(filename) # musk_0001
```
نحوه نصب
نصب پکیج whl cgai-path-0.0.8:
pip install cgai-path-0.0.8.whl
نصب پکیج tar.gz cgai-path-0.0.8:
pip install cgai-path-0.0.8.tar.gz