Hello,
I am looking for a way to make some change ( a simple string replacement )to a .vrscene imported via the new VRaySceneManager.
But is seems that Post translate Python Script does not affect it.
The goal is to be able to change some strings in bitmap buffer in order to change path files if needed and replace current texture (jpg, tga, png...) by .tx one.
I am working on maya 2016 vray3.3
the little script i wrote , who work for files in maya , but not with .vrscene imported
Let me know if i am missing something.
I am looking for a way to make some change ( a simple string replacement )to a .vrscene imported via the new VRaySceneManager.
But is seems that Post translate Python Script does not affect it.
The goal is to be able to change some strings in bitmap buffer in order to change path files if needed and replace current texture (jpg, tga, png...) by .tx one.
I am working on maya 2016 vray3.3
the little script i wrote , who work for files in maya , but not with .vrscene imported
Code:
from vray.utils import* b=findByType("BitmapBuffer") for each in b : bs=each.get("file") new=bs.replace("Z:","X:") each.set("file",new)
Comment