Hello everyone,
I am trying to convert a vif file to png. I found this script: Solved: Extract/save textures from materials using python? - Autodesk Community - VRED
For me, it does not work. Do I have to enable v2 API somewhere for it to work? Because there is no change in the folder where it is supposed to save the image file (c:/vred-snapshots).
I am on VRED 2025.1.
Any help would be appreciated. Thanks.
vif files can´t be converted to PNG. Vif is an internal data that is usually not at 2D texture but either a 3D or Cube texture which can´t be stored in a PNG.
Do you get any errors when running the script? I just tried it and for me it works fine.

Hi, is this about the asset preview files which can also be saved in .vif format instead of png?
The script from the linked thread will only save images that are present as textures in materials, with the same file extension as when loaded.
You have the vif file on disk?
You can load the vif in VRED as a material texture (e.g. in a Plastic material, diffuse texture), and then save it out to any supported format including png. You can do this manually in the VRED UI, or by adjusting the script if you have many of these files.
As Michael already said, vif can contain also other kinds of image data, not only 2D but also cube maps. Or HDR data which cannot be saved to PNG (but to exr for example).
Environment cube maps in VRED are HDR data, they can be saved to exr and will then be a 2D image with vertical cross format.
Can't find what you're looking for? Ask the community or share your knowledge.