Merge pull request #285 from tokejepsen/2.x/bugfix/validate_scene_settings

Harmony scene validation needs to start at 1.
This commit is contained in:
Milan Kolar 2020-06-18 10:12:21 +02:00 committed by GitHub
commit 274eb040fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,6 +31,12 @@ class ValidateSceneSettings(pyblish.api.InstancePlugin):
def process(self, instance):
expected_settings = pype.hosts.harmony.get_asset_settings()
# Harmony is expected to start at 1.
frame_start = expected_settings["frameStart"]
frame_end = expected_settings["frameEnd"]
expected_settings["frameEnd"] = frame_end - frame_start + 1
expected_settings["frameStart"] = 1
func = """function func()
{
return {