def process(self, instance):
    selection = [i for i in nuke.allNodes() if i['selected'].getValue()]
    [i['selected'].setValue(False) for i in nuke.allNodes()]
    self.log.debug('creating staging dir:')
    self.staging_dir(instance)
    self.log.debug('instance: {}'.format(instance))
    self.log.debug('instance.data[families]: {}'.format(instance.data['families']))
    if ('still' not in instance.data['families']):
        self.render_review_representation(instance, representation='mov')
        self.render_review_representation(instance, representation='jpeg')
    else:
        self.render_review_representation(instance, representation='jpeg')
    [i['selected'].setValue(False) for i in nuke.allNodes()]
    [i['selected'].setValue(True) for i in selection]
def process(self, instance):
    selection = [i for i in nuke.allNodes() if i['selected'].getValue()]
    [i['selected'].setValue(False) for i in nuke.allNodes()]
    self.log.debug('creating staging dir:')
    self.staging_dir(instance)
    self.log.debug('instance: {}'.format(instance))
    self.log.debug('instance.data[families]: {}'.format(instance.data['families']))
    if ('still' not in instance.data['families']):
        self.render_review_representation(instance, representation='mov')
        self.render_review_representation(instance, representation='jpeg')
    else:
        self.render_review_representation(instance, representation='jpeg')
    [i['selected'].setValue(False) for i in nuke.allNodes()]
    [i['selected'].setValue(True) for i in selection]