Announcement

Collapse
No announcement yet.

VRay Proxy command ignores preview settings

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • VRay Proxy command ignores preview settings

    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



  • #2
    The difference is that in the "Create V-Ray Proxy" dialog the "Refined Clustering" algorithm is selected. To get the same results via script, use previewType="combined".
    The "clustering" preview rarely achieves the exact number of faces requested. The refined (combined) preview targets a larger face count for the clustering step, and then runs a different algorithm which collapses the least noticeable edges. This is slightly slower, but generally produces nicer results, and more precisely matches the requested number of faces. That's why it is the default in the dialog.
    Deyan Spirov
    V-Ray for Maya developer

    Comment


    • #3
      Originally posted by deyan.spirov View Post
      The difference is that in the "Create V-Ray Proxy" dialog the "Refined Clustering" algorithm is selected. To get the same results via script, use previewType="combined".
      The "clustering" preview rarely achieves the exact number of faces requested. The refined (combined) preview targets a larger face count for the clustering step, and then runs a different algorithm which collapses the least noticeable edges. This is slightly slower, but generally produces nicer results, and more precisely matches the requested number of faces. That's why it is the default in the dialog.
      Hi Deyan and thanks for the fast reply!
      It does indeed seems like using combined instead of clustering fixes it
      I could have sworn that I had tried that option as well while testing, but it works now

      Cheers
      CG

      Comment

      Working...
      X