I’m making myself a confirm batch render dialogue/window in MEL. A last minute check-list to make sure I get all the settings right before sending them off to the renderfarm!
I’m familiar with most getAttr in V-Ray but sometimes they do not return any results, for example:
I have no problems with `getAttr vraySettings.fileNamePrefix` here.
If `getAttr vraySettings.imageFormatStr` return an empty string, the extension is “png”
These attributes gets updated once you set their values. If you open a new scene, they return empty strings and, as Ivaylo mentioned, you can use the default values - for vraySettings.imageFormatStr it’s “png”, for vraySettings.fileNamePrefix it is the name of the scene, which by default is “untitled”. You can also use getSceneName command for it. One more way to get the full name of the file would be to use the value of the text field of the preview:
text -q -label vrayFilenamePreview;
Hope that helps. Let me know if there are any issues.
Best regards,
Milena
P.S. Ops, I just saw your last posting after I replied. I am glad you’ve found some work around. Good luck!