def main(): plugin = Plugin( os.path.join( os.path.expandvars('$GIMP_PROJECT'), 'src/nn/cnn/dataset/shape/random/random_triangle_generator_plugin.py' ), ARGS, 'random_triangle_generator') plugin.run()
def run_workers(): num_workers = 3 worker_path = os.path.join(os.path.expandvars('$GIMP_PROJECT'), WORKER_PATH) workers = [ Plugin(worker_path, WORKER_PLUGIN_NAME, [("number", i + 1), ("interval", (i + 1) * 3)], list_args=True) for i in range(num_workers) ] plugins = [] for worker in workers: timestamp_print('Running worker...') plugin = worker.run_as_subprocess() plugins.append(plugin) time.sleep(0.5) return plugins
def main(): plugin = Plugin( os.path.expandvars('$GIMP_PROJECT') + '/src/gimp/draw/generate_actions_plugin.py', ARGS, 'generate_actions') plugin.run()
def main(): plugin = Plugin( os.path.expandvars('$GIMP_PROJECT') + '/src/gimp/draw/draw_selection_shape_plugin.py', ARGS, 'draw_selection_shape') plugin.run()
def main(): plugin = Plugin( os.path.expandvars('$GIMP_PROJECT') + '/src/gimp/processing/scale_plugin.py', ARGS, 'scale') plugin.run()
def main(): plugin = Plugin(plugin_file=os.path.join(PROJECT_BASE_PATH, PLUGIN_PATH), args=ARGS, plugin_name='primitive') plugin.run(verbose=True)
def main(): plugin = Plugin(os.path.expandvars('$GIMP_PROJECT') + '/src/nn/cnn/dataset/shape/random/random_shape_generator_plugin.py', ARGS, 'random_shape_generator') plugin.run()