From 3277c8c2b943c402dd51d579c1cda26ac0776766 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Wed, 4 Nov 2020 10:39:21 +0100 Subject: [PATCH] using tvpaint's lib instead of CommunicationWrapper --- pype/plugins/tvpaint/create/create_beauty.py | 4 ++-- pype/plugins/tvpaint/create/create_review.py | 2 +- pype/plugins/tvpaint/load/load_image.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pype/plugins/tvpaint/create/create_beauty.py b/pype/plugins/tvpaint/create/create_beauty.py index c8303c8b11..dd08c1a0d2 100644 --- a/pype/plugins/tvpaint/create/create_beauty.py +++ b/pype/plugins/tvpaint/create/create_beauty.py @@ -1,5 +1,5 @@ import avalon.io -from avalon.tvpaint import pipeline, CommunicationWrapper +from avalon.tvpaint import pipeline, lib class CreateBeauty(pipeline.TVPaintCreator): @@ -15,7 +15,7 @@ class CreateBeauty(pipeline.TVPaintCreator): def process(self): instances = pipeline.list_instances() - layers_data = CommunicationWrapper.layers_data() + layers_data = lib.layers_data() group_ids = set() for layer in layers_data: if layer["selected"]: diff --git a/pype/plugins/tvpaint/create/create_review.py b/pype/plugins/tvpaint/create/create_review.py index 34c7e0c6ed..567ab10f42 100644 --- a/pype/plugins/tvpaint/create/create_review.py +++ b/pype/plugins/tvpaint/create/create_review.py @@ -1,4 +1,4 @@ -from avalon.tvpaint import pipeline, CommunicationWrapper +from avalon.tvpaint import pipeline class CreateReview(pipeline.TVPaintCreator): diff --git a/pype/plugins/tvpaint/load/load_image.py b/pype/plugins/tvpaint/load/load_image.py index ca4b7a4c86..72bd23a720 100644 --- a/pype/plugins/tvpaint/load/load_image.py +++ b/pype/plugins/tvpaint/load/load_image.py @@ -1,5 +1,5 @@ from avalon import api -from avalon.tvpaint import CommunicationWrapper +from avalon.tvpaint import lib class ImportImage(api.Loader): @@ -35,4 +35,4 @@ class ImportImage(api.Loader): self.fname.replace("\\", "/"), layer_name ) - return CommunicationWrapper.execute_george_through_file(george_script) + return lib.execute_george_through_file(george_script)