Announcement

Collapse
No announcement yet.

multiple nurbs surface extra tesselation attribute

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

  • multiple nurbs surface extra tesselation attribute

    Hi

    Is there a way to apply the Vray Nurbs tesselation attributes to multiple nurbs surfaces?

    Also is there any updated documentation on the specific attributes

    thanks

  • #2
    This is in our 'to do' list.
    For now you can use a Mel Script:
    A have attached an example, which will apply NURBS Attributes to all selected object except the ones that already have it applied.


    global proc vrayCreateNurbsAttributes(int $staticGeom, int $tesselationDepth, float $curvatureThreshold) {
    string $selectedNodes[] = `selectedNodes`;
    string $nurbsShapes[];
    int $i, $j = 0;
    for ($i = 0; $i < size($selectedNodes); $i++) {
    string $shapes[] = `listRelatives -shapes $selectedNodes[$i]`;
    for ($iShape = 0; $iShape < size($shapes); $iShape++) {
    string $objType = `objectType $shapes[$iShape]`;
    if ($objType == "nurbsSurface") {
    $nurbsShapes[$j++] = $shapes[$iShape];
    }
    }
    }

    print($nurbsShapes);
    print("\n");

    for ($i = 0; $i < size($nurbsShapes); $i++) {
    string $node = $nurbsShapes[$i];
    if (!`attributeQuery -exists -node $node "vrayAsStaticGeom"`) {
    addAttr -ln "vrayAsStaticGeom" -at "bool" -dv $staticGeom $node;
    }
    if (!`attributeQuery -exists -node $node "vrayMaxSubdivDepth"`) {
    addAttr -ln "vrayMaxSubdivDepth" -at "long" -dv $tesselationDepth $node;
    }
    if (!`attributeQuery -exists -node $node "vrayFlatnessCoef"`) {
    addAttr -ln "vrayFlatnessCoef" -at "float" -dv $curvatureThreshold $node;
    }
    }
    }
    Best regards,
    Zdravko Keremidchiev
    Technical Support Representative

    Comment


    • #3
      Hi
      has this issue been resolved.
      I have a lot of Nurbs curve to render and I can't find a way to add the "rendereable" attribute to all my curves.

      Could we have the equivalent of object property node for nurbs (curves and surfaces).

      Thanks,

      Yannick
      Portfolio: http://www.cgifocus.co.uk

      Comment


      • #4
        For curves yes, this has been solved in the latest nightly builds. Select the curves and go to Create > V-Ray > V-Ray Renderable Curve. Still working on the NURBS node.

        Best regards,
        Vlado
        I only act like I know everything, Rogers.

        Comment


        • #5
          Thanks Vlado.

          I'll have look at the nightly
          Portfolio: http://www.cgifocus.co.uk

          Comment

          Working...
          X