BigRoy / usd-qtpy

Python Qt components for building custom USD tools.
MIT License
57 stars 8 forks source link

Workflow: Transformation module for digesting data and setting XformOps on Prims. #41

Open Sasbom opened 7 months ago

Sasbom commented 7 months ago

https://github.com/BigRoy/usd-qtpy/pull/30#discussion_r1413848279

@BigRoy brought up a point that the camera translation function from could be generalized. I think it'd be a good idea to extend this to rotation and scaling and the transformation matrix operations too,

This would be convenient when building out https://github.com/BigRoy/usd-qtpy/issues/26 .

and would also offer generic versions of some functions in the render_util module, which would be particularly useful in https://github.com/BigRoy/usd-qtpy/pull/30 .

I propose that we keep other attributes in mind and structure it like so

usd-qtpy
|
| - lib
|    | - attributes
|        | - __init__.py
|        | - transformations.py
|        | - primvar.py
|        | - metadata.py
|
| - render_util...

On a small sidenode: We could put render_util in lib too. I don't exactly know what belongs there and what doesn't.

That's all for now, folks