How to get SG entity data using shotgun_fields.mu

I’m trying to get our shot_lut entity from the playing Version to configure the ocio context.
I’m stuck! I can’t seem to get the shotgun_fields.mu module working at all.
Can anyone point to a tutorial that describes how I might get this working?

I’ve set the preferences to load SG Integrations.
I’ve copied the shotgun_fields_config_standard.mu file to our custom RV path /mu folder.

The logs report this file as being found :
INFO: loaded shotgun config module ‘shotgun_fields_config_standard’ (Z:/studio/rv/dev/Mu/shotgun_fields_config_standard.mu)
INFO: using shotgun server ‘https://vinefx.shotgunstudio.com

I’ve set my SG config to “standard”.

The docs suggest I should see “INFO: Loaded “shotgun_info_mode”” but this isn’t being displayed… so I think that might be where it’s going wrong. No errors to point me in the right direction though.

/edit
Interestingly, if I launch RV with the following command, the shotgun_fields_config_standard.mu is being loaded correctly(I can see the debug being printed)… but if I launch the same version from the SG website, it isn’t.

rv.exe “rvlink:// -play -l -eval ‘shotgun.sessionFromVersionIDs(int {41055});’”

Stranger still, even though the fields are being found, the source.track.info stringproperties don’t appear to be being set, so even if I could adapt the shotgun_fields_config_custom to return the cdl path, I wouldn’t be able to retrieve it from the RVSource node.

Any ideas?
Thanks
Patrick

2 Likes

Hi Patrick, let’s work through this!

The Shotgun Fields are only available through the Mu-based shotgun integration (called Shotgun Integration and Screening Room). The following suggests to me that you probably have the Shotgun Review package enabled on your Shotgun site:

If you want to utilize Screening Room/Shotgun Integration (such as you sessionFromVersionID is doing), you want to disable Shotgun Review on your site. Note that this is a global change and will change the links that are generated for everyone on your site.

The responsible site preference should look like this to disable Shotgun Review (in favor of Shotgun Integration/Screening Room):

Once you do that, a similar link will be generated for your Play in RV.

As far as the fields for the track.info on each source, they aren’t created immediately. They are created asynchronously slightly after the source is created. If you are trying to access them on source-group-complete, it will be too soon for the API query to have filled out the data. Instead, watch for graph-state-change where tracking.info is in the event.contents().

@jacobg was recently doing similar work over here and shared his function to achieve something similar.
RV Screening Room read version data

2 Likes

Thank Michael,
Given you need to disable SG Review to be able to benefit from the Version info, are people reverting back to Screening room? Is SG review EOL?
Thanks for the link.
I think my key problem was having SG review enabled, thus preventing the .tracking.info data being available. I’ll check with my client to see if disabling SG Review will be possible with them.
Thanks again!

1 Like

While Screening Room is our current suggested integration over SG Review, you can still get at the data for a version (as it is still stored on the version). It is however, not configurable as to which fields are obtained by something like the fields_config.

For instance, check out the sg_review.version_id on the source node to obtain the version_id. At that point you should be able to query for your associated data on your Shotgun site. It requires an extra query through the Shotgun API, but it is still possible.

1 Like