diff --git a/pype/plugins/maya/create/create_look.py b/pype/plugins/maya/create/create_look.py index 299fbafe02..49fd376db0 100644 --- a/pype/plugins/maya/create/create_look.py +++ b/pype/plugins/maya/create/create_look.py @@ -18,3 +18,6 @@ class CreateLook(avalon.maya.Creator): # Whether to automatically convert the textures to .tx upon publish. self.data["maketx"] = True + + # Enable users to force a copy. + self.data["forceCopy"] = False diff --git a/pype/plugins/maya/publish/extract_look.py b/pype/plugins/maya/publish/extract_look.py index d23dfbcf3e..c7b8058852 100644 --- a/pype/plugins/maya/publish/extract_look.py +++ b/pype/plugins/maya/publish/extract_look.py @@ -206,6 +206,11 @@ class ExtractLook(pype.api.Extractor): destination = self.resource_destination( instance, source, do_maketx ) + + # Force copy is specified. + if instance.data.get("forceCopy", False): + mode = COPY + if mode == COPY: transfers.append((source, destination)) elif mode == HARDLINK: