Setting meters_scale in the Render Settings works in the Hydra viewport, but I can’t get it to affect Husk renders. Also, looking at an exported vrscene it’s set to the default value regardless of the value on the Render Settings prim.
Overriding it Post Translate seems to do the trick, but I wonder if I’m missing something to have it working without hacks?
import vray
with vray.VRayRenderer() as renderer:
settingsUnitsInfo = renderer.plugins.vfuSettingsUnitsInfo
settingsUnitsInfo.meters_scale = 0.01
Meters scale is taken from stageMetersPerUnit render setting. stageMetersPerUnit is set by Husk. Husk takes is from USD stage settings. Export .usd file and check which value is set there.
Aha, that’s good to know. Setting the metersPerUnit metadata on the stage indeed works for both the viewport and husk renders - yay!
Is there still a point to the meters_scale in the VRay Render Settings then? Or is it a legacy attribute from pre usd/Hydra days, that should be removed from the UI?