RV Screening Room read version data

Hey Michael

Thanks a lot for the reply.

I ended up figuring a solution which has worked really well:

def _get_source_shotgun_data(source):
    """
    Get the shotgun data from a source.

    Args:
        source (str): rv source name.

    Returns:
        dict: shotgun data as a dictionary.

    """
    try:
        source_data = rv.commands.getStringProperty(
            "{}.tracking.info".format(source)
            )

        data_list = ast.literal_eval(str(source_data))
    except:
        return {}

    return {k: v for k, v in zip(data_list, data_list[1:])}

Then I saw your post today about this which is extremely useful. I will definitely be digging more into the shotgun_mode.

Loving getting into doing work with RV and SG Screening Room.

Thanks

Jacob

7 Likes