Mel to change ImageFormat

Hello, just a desperate quickie
I need to change the imageformat output of a load of scenes to EXR (Multichannel), and I’m having trouble doing so with mel.


setAttr "vraySettings.imageFormatStr" 6; // Error: line 1: setAttr: 'vraySettings.imageFormatStr' is not a simple numeric attribute.  Its values must be set with a -type flag. // 

I try the “-type” flag to string and while I get no more error, it doesn’t appear to change the format :face_with_spiral_eyes:.
I must be missing something super-obvious, but again I’m pushed for time before a long weekend here. Any advice most welcome :slight_smile:

Hi,

The correct command is: setAttr “vraySettings.imageFormatStr” -type “string” “exr (multichannel)”;

If you want to get the value you have to use in the setAttr command you can use this command: print(`optionMenuGrp -q -v vrayImageFormatMenu`);
Execute the command after you’ve set the desired value in the combo box in the render settings.
Then you can copy paste it in the set command.

/Teodor

Ahh thank you Teodor.
It was indeed a silly oversight of mine.
setAttr “vraySettings.imageFormatStr” -type “string” “6”; is what I was trying.

Thank you as always for the outstanding support!