https://github.com/csprance/better_cry
Work with CRYENGINE objects in an object oriented way
https://github.com/csprance/better_cry
Last synced: 9 months ago
JSON representation
Work with CRYENGINE objects in an object oriented way
- Host: GitHub
- URL: https://github.com/csprance/better_cry
- Owner: csprance
- Created: 2018-11-24T06:50:11.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-05T18:12:37.000Z (over 7 years ago)
- Last Synced: 2025-09-21T06:48:30.625Z (9 months ago)
- Language: Python
- Size: 2.93 KB
- Stars: 2
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Better Cry
> Work with CRYENGINE objects in the editor in an object oriented way.
## Install
Drag and drop the `better_cry` folder into `Editor\Scripts`
## Usage
```python
from better_cry import Level
level = Level()
for item in level.selected:
# set an items position
item.position = [0,0,0]
# read its rotation
print(item.rotation)
print(item.scale)
# get the aabb of the item
print(item.bounding_box)
# get the width/height/depth x/z/y
print(item.width)
print(item.height)
print(item.depth)
```