Announcement

Collapse
No announcement yet.

Get poly number with VRay smooth of an asset/scene

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

  • Get poly number with VRay smooth of an asset/scene

    Hello,

    I would to know how I can get the info of the poly number of an asset (or of the full scene) after the VRay rendered smooth.
    I need to send it in exr metadata after.

    Thank you,

    Ed

  • #2
    You can do that by using this Post Translate Python Script, which will write the polycount for the selected objects. This way you have a choice to either select a certain asset or the whole scene:

    from vray.utils import *
    import maya.cmds as cmds
    nodes=findByType("SettingsEXR")

    for node in nodes:
    strValue = 'polyCount={}'.format(cmds.polyEvaluate(face=True) )
    node.set("extra_attributes", strValue)
    Aleksandar Hadzhiev | chaos.com
    Chaos Support Representative | contact us

    Comment


    • #3
      Hello Aleksandar,

      Thank you for your answer.
      I'm going to try.

      Best regards,

      Ed

      Comment

      Working...
      X