mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 13:52:15 +01:00
- `frameRate` to `fps` - `startFrame` to `frameStart` - `endFrame` to `frameEnd` - `fstart` to `frameStart` - `fend` to `frameEnd` - `handle_start` to `handleStart` - `handle_end` to `handleEnd` - `resolution_width` to `resolutionWidth` - `resolution_height` to `resolutionHeight` - `pixel_aspect` to `pixelAspect`
27 lines
787 B
Python
27 lines
787 B
Python
import pyblish.api
|
|
|
|
|
|
class ValidateVrayProxy(pyblish.api.InstancePlugin):
|
|
|
|
order = pyblish.api.ValidatorOrder
|
|
label = 'VRay Proxy Settings'
|
|
hosts = ['maya']
|
|
families = ['studio.vrayproxy']
|
|
|
|
def process(self, instance):
|
|
|
|
invalid = self.get_invalid(instance)
|
|
if invalid:
|
|
raise RuntimeError("'%s' has invalid settings for VRay Proxy "
|
|
"export!" % instance.name)
|
|
|
|
@classmethod
|
|
def get_invalid(cls, instance):
|
|
data = instance.data
|
|
|
|
if not data["setMembers"]:
|
|
cls.log.error("'%s' is empty! This is a bug" % instance.name)
|
|
|
|
if data["animation"]:
|
|
if data["frameEnd"] < data["frameStart"]:
|
|
cls.log.error("End frame is smaller than start frame")
|