def main(): app_name = "Update" error_level = logging.DEBUG error_logging = pyani.core.error_logging.ErrorLogging( app_name, error_level) error_logging.setup_logging() # create the application and the main window app = QtWidgets.QApplication(sys.argv) steps = [ "Updating local cgt tool cache", "Updating local cgt asset cache", "Updating list of all sequences", "Checking updates for desktop shortcut for pyAniTools", "Checking updates for Nuke customization" ] window = update.AniUpdateGui(error_logging, steps) # setup stylesheet - note that in pyani.core.ui has some color overrides used by QFrame, and QButtons app.setStyleSheet(qdarkstyle.load_stylesheet_from_environment()) # run window.show() window.run() app.exec_()
def main(): app_name = "pyAniAppRoamingLauncher" error_level = logging.DEBUG error_logging = pyani.core.error_logging.ErrorLogging( app_name, error_level) error_logging.setup_logging() # get path to app (up to directory holding it) and app name try: app_path = sys.argv[1] app_name = sys.argv[2] except IndexError as e: app_path = "" app_name = "" # create the application and the main window app = QtWidgets.QApplication(sys.argv) window = pyani.core.mngr.ui.launcher.AniAppRoamingLauncher( error_logging, app_path, app_name) # setup stylesheet - note that in pyani.core.ui has some color overrides used by QFrame, and QButtons app.setStyleSheet(qdarkstyle.load_stylesheet_from_environment()) # run window.show() window.run() app.exec_()
def main(): app_name = "Review_Download" error_level = logging.DEBUG error_logging = pyani.core.error_logging.ErrorLogging( app_name, error_level) error_logging.setup_logging() # create the application and the main window app = QtWidgets.QApplication(sys.argv) steps = [ "Finding latest assets for review..This may take a few seconds", "Downloading assets for review" ] window = pyani.review.gui.AniReviewAssetDownloadGui(error_logging, steps) # setup stylesheet - note that in pyani.core.ui has some color overrides used by QFrame, and QButtons app.setStyleSheet(qdarkstyle.load_stylesheet_from_environment()) # run window.show() window.run() app.exec_()
def main(): # logging setup app_name = "PyNukeMngr" error_level = logging.DEBUG error_logging = pyani.core.error_logging.ErrorLogging( app_name, error_level) error_logging.setup_logging() # create the application and the main window app = QtWidgets.QApplication(sys.argv) window = AniNukeMngrGui(error_logging) # setup stylesheet - note that in pyani.core.ui has some color overrides used by QFrame, and QButtons app.setStyleSheet(qdarkstyle.load_stylesheet_from_environment()) # run window.show() app.exec_()
def main(): app_name = "pyShoot" error_level = logging.DEBUG error_logging = pyani.core.error_logging.ErrorLogging( app_name, error_level) error_logging.setup_logging() # path to ffmpeg executable, bundled with PyShoot movie_generation = "C:\\PyAniTools\\apps\\pyShoot\\ffmpeg\\bin\\ffmpeg" # path to playback tool, using rv movie_playback = r'C:\Program Files\Shotgun\RV-7.2.1\bin\rv' # enforce strict padding # enforce the same padding for whole image sequence strict_pad = True # ===================================================== # make command line interface object (pyani.media.movie.create.ui) cli = pyani.media.movie.create.ui.AniShootCLI(movie_generation, movie_playback, strict_pad) # check if user passed no gui flag if not cli.args.nogui: # create the application and the main window app = QtWidgets.QApplication(sys.argv) window = pyani.media.movie.create.ui.AniShootGui( movie_generation, movie_playback, strict_pad, error_logging) # setup stylesheet - note that in pyani.core.ui has some color overrides used by QFrame, and QButtons app.setStyleSheet(qdarkstyle.load_stylesheet_from_environment()) # run window.show() app.exec_() else: log = cli.run() print log