Skip to content

Package rez for V-Ray6 houdini

py
name = "vray"
version = "6.00.21"

def commands():
    # License
    env.VRAY_AUTH_CLIENT_FILE_PATH.set(r"C:\Users\Public")

    env.VFH_ROOT.set(r"C:\VFH")

    env.VRAY_APPSDK.set(fr"{env.VFH_ROOT}/appsdk")
    env.VRAY_OSL_PATH.set(fr"{env.VFH_ROOT}/appsdk/bin")
    env.VRAY_UI_DS_PATH.set(fr"{env.VFH_ROOT}/ui")
    env.VRAY_SDK=""
    env.VFH_HOME.set(fr"{env.VFH_ROOT}/vfh_home")
    env.VFH_ASSET_PATH.set("[MTLLIB_DOWNLOAD_DIR]/assets")

    env.PATH.append(fr"{env.HFS}/bin")
    env.PATH.append(fr"{env.VRAY_APPSDK}/bin")
    env.PATH.append(fr"{env.VFH_HOME}")
    env.PATH.append(fr"{env.VFH_HOME}/bin")

    env.HOUDINI_GALLERY_PATH.append(fr"{env.VFH_HOME}/gallery")
    env.HOUDINI_PATH.set(fr"{env.VFH_HOME};&")
    # For V-Ray 6
    # Python version will be selected automatically on module import)
    env.PYTHONPATH.prepend(fr"{env.VRAY_APPSDK}/python")
    env.HOUDINI_DSO_PATH.set(fr"{env.VFH_HOME}/dso_py37;&")