コード例 #1
0
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()
コード例 #2
0
ファイル: demo.py プロジェクト: trejsu/gimp-drawer
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
コード例 #3
0
def main():
    plugin = Plugin(
        os.path.expandvars('$GIMP_PROJECT') +
        '/src/gimp/draw/generate_actions_plugin.py', ARGS, 'generate_actions')
    plugin.run()
コード例 #4
0
def main():
    plugin = Plugin(
        os.path.expandvars('$GIMP_PROJECT') +
        '/src/gimp/draw/draw_selection_shape_plugin.py', ARGS,
        'draw_selection_shape')
    plugin.run()
コード例 #5
0
def main():
    plugin = Plugin(
        os.path.expandvars('$GIMP_PROJECT') +
        '/src/gimp/processing/scale_plugin.py', ARGS, 'scale')
    plugin.run()
コード例 #6
0
def main():
    plugin = Plugin(plugin_file=os.path.join(PROJECT_BASE_PATH, PLUGIN_PATH),
                    args=ARGS,
                    plugin_name='primitive')
    plugin.run(verbose=True)
コード例 #7
0
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()