mikedatsik / tk-cinema

Shotgun Toolkit Engine for Maxon Cinema 4D https://www.maxon.net
Other
17 stars 12 forks source link

General improvements and patches. #11

Closed danbradham closed 3 years ago

danbradham commented 3 years ago

This PR continues improvements made in @MaxZachner 's PR #10. I made his changes cross-platform by using os.path.split rather than .split('\'). I also changed tabs in his changes to spaces.

I also added support for the reset operation which is called when New File is pressed in the lower left corner of the workfiles dialog. This will now create a new Untitled document and store the associated context from the workfiles dialog. When you finally go to save that document, it will open the Save As dialog in the correct context.

Finally this PR adds support for Cinema4d S24 but in order for PySide2 to work I had to build it for the correct version of CPython39 and msvc. That work was done awhile ago but I forgot to make a PR. You can get the prebuilt PySide2 and shiboken2 binaries for S24 here https://github.com/danbradham/wheels. In order to use them you'll have to either install them using pip with c4dpy or extract them to a shared network location and add that path to PYTHONPATH when launching cinema4D.