Python Package made by Mhadhbi Issam .
Project description
pydefold-api
Getting started
Install :
pip install pydefoldapi
Usage :
- Example 1:
from PyDefoldApi import DefoldApi
c =DefoldApi.CollectionDesc(name = "main")
c.name = "main"
o =DefoldApi.EmbeddedInstanceDesc(id = "go")
c.embedded_instances.append(o)
print(c.to_dict())
c.update({"name" : "ffffffff"})
print(c)
- Example 2:
from PyDefoldApi import DefoldApi
cam = DefoldApi.CameraDesc()
cam.update({
"aspect_ratio": 0.0,
"fov": 150,
"near_z":15,
"far_z": 0.0,
"auto_aspect_ratio": 0,
"orthographic_projection": 0,
"orthographic_zoom": 1.0
})
print(cam.to_dict())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pydefoldapi-1.0.8.tar.gz
(18.7 kB
view hashes)
Built Distribution
Close
Hashes for pydefoldapi-1.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10e3d2ad1640586fe10240ec27eb30ee45b322e4f6077bece5f675c7af0398e9 |
|
MD5 | 4b4f362aa8e9dac3614eb15d40e04e99 |
|
BLAKE2b-256 | aa72ce483a07c9d46f7267c9a403dbd85debf12736be769b97e22967efcbc766 |