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.7.tar.gz
(18.7 kB
view hashes)
Built Distribution
Close
Hashes for pydefoldapi-1.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 528e00ea648e669a302bd267e108288abf026b2deafbfe765ee493ac5e6d9a3c |
|
MD5 | dcf92f1124bc7a34fb4a82a63e211523 |
|
BLAKE2b-256 | 0a87064e588e0854522c683f9df23a79a12eadab311b9993f0b0ca603beeffdc |