Remove path in "Preview Override" of all VrayProxy objects in the scene?

Is there quick script to blank out the Preview Override input field of all VrayProxy objects in the given scene all at once?
https://imgur.com/ERwW16x

Practical problem is sometimes VrayProxy created correctly but use a custom preview override mesh which might be missing or share the same filename with some totaly different model at the time max scene was given. So is there some one line or a few lines script to make the field blank without any path. The goal is to force displaying of proxy to follow the real mesh object (not custom object). Thanks for reading. (I have script to swith between display mode of vrayProxy already, but the custom Preview Override always has higher priority in displaying, until I can remove it from all proxies, of course)

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
barigazy's picture

...

--clean only selected objects
for o in selection where isKindOf o VRayProxy do o.fileNamePreview = ""
--clean all scene objects which "fileNamePreview" path not exist
for o in geometry where isKindOf o VRayProxy do
	if not doesFileExist o.fileNamePreview do o.fileNamePreview = ""

bga

nnq2603's picture

Thanks Barigazy for override preview fix

Thanks Barigazy for override preview quick fix. Since the post from unverified users takes too much time to approve (like I usually post and 2 weeks later the moderators approve it), so I usually move on with another tasks and when I remember to check back it's a long time. But I always appreciate you and other fellow developers/programmers here for such a help.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.