Hi folks!
I'm having some issues when trying to create vray-proxies with the script command, both in python and mel. My issue is that I can't make the script command affect the face count of the viewport preview at all.
When I create proxies by using the menu window for it, everything is peachy. I ask for 1000 faces and I get 1000 faces. But when I tried to replicate the process using the script command I can't make the preview use the given settings
So I'm trying to get a face count of 1000, this is my python script:
proxy_name = "ProxyByScript.vrmesh"
ref_folder = "C:/Temp/"
cmds.vrayCreateProxy(dir=ref_folder,fname=proxy_na me, overwrite=True, facesPerVoxel=1000, previewFaces=1000, exportType=1, previewType="clustering")
The result is a proxy with 804 faces... This count seems to vary from object to object, so I guess its based on some auto-reduction algorithm. Sometimes the result is pretty nice, other times its really not.
I've tried just about all the parameters of the command, but it just ignores them and makes the same face count again and again.
I've attached some pictures of the process if it helps.
I'm really stumped and its kinda putting a stop for a further automation of proxy creation in my workflow.
Any help would be much appreciated. I'm open for suggestions or ideas.
Best Regards
CG
I'm having some issues when trying to create vray-proxies with the script command, both in python and mel. My issue is that I can't make the script command affect the face count of the viewport preview at all.
When I create proxies by using the menu window for it, everything is peachy. I ask for 1000 faces and I get 1000 faces. But when I tried to replicate the process using the script command I can't make the preview use the given settings
So I'm trying to get a face count of 1000, this is my python script:
proxy_name = "ProxyByScript.vrmesh"
ref_folder = "C:/Temp/"
cmds.vrayCreateProxy(dir=ref_folder,fname=proxy_na me, overwrite=True, facesPerVoxel=1000, previewFaces=1000, exportType=1, previewType="clustering")
The result is a proxy with 804 faces... This count seems to vary from object to object, so I guess its based on some auto-reduction algorithm. Sometimes the result is pretty nice, other times its really not.
I've tried just about all the parameters of the command, but it just ignores them and makes the same face count again and again.
I've attached some pictures of the process if it helps.
I'm really stumped and its kinda putting a stop for a further automation of proxy creation in my workflow.
Any help would be much appreciated. I'm open for suggestions or ideas.
Best Regards
CG
Comment