Announcement

Collapse
No announcement yet.

vray subdivision attribute

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

  • vray subdivision attribute

    as the vray attribute has to be added manually there is no way to apply a subD attribute over multiple objects via the spreadsheet editor. Is there a reason why this would be done this way? personally i think implementing the subD attribute so it can be added & adjusted via the spreadsheet editor much more efficient than it currently is.

    I know there is the render viewport subdivision, but that seems to produce not as smooth results as the subD attribute & seems to handle texture smoothing differently and also seems to take alot longer to render.

    sorry if this has been discussed already but icouldnt see anything.

    Thanks

    Chris
    Last edited by cdavis; 10-06-2010, 05:33 AM.

  • #2
    Its very easy to script...

    really ..

    O.

    Comment


    • #3
      well im completly mel illeterate, so if you could show me id be grateful.

      Comment


      • #4
        Try something like this:

        Code:
        for($node in `ls -sl`){
        	string $shapes[] = `listRelatives -s -pa $node`;
        	if(`nodeType $shapes[0]`== "mesh"){
        		print($shapes[0]+"\n");
        		string $cmd = "vray addAttributesFromGroup "+$shapes[0]+" vray_subdivision 1";
        		eval($cmd);
        	}
        }

        Comment


        • #5
          Or this if you have several deformed shape nodes:
          Code:
          for($node in `ls -sl`){
          	string $shapes[] = `listRelatives -s -pa $node`;
          	for($shape in $shapes){
          		if($shape != "<done>" && `nodeType $shapes[0]`== "mesh"){
          			print($shape+"\n");
          			string $cmd = "vray addAttributesFromGroup "+$shape+" vray_subdivision 1";
          			eval($cmd);
          		}
          	}
          }

          Comment


          • #6
            i thought there was already a control in vray if you go to create/vray/apply single/multiple nodes properties to selection will add vray attributes to all selected objects.
            Dmitry Vinnik
            Silhouette Images Inc.
            ShowReel:
            https://www.youtube.com/watch?v=qxSJlvSwAhA
            https://www.linkedin.com/in/dmitry-v...-identity-name

            Comment


            • #7
              Not for subdivisions and displacement, I think.

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

              Comment


              • #8
                madcrew, thanks very much, that was exactly what I needed.

                Vlado, can this not be built in to future builds, i know its probably a really simple script but for a non scripting artist it saved me hours of work & will save others scouring the forums for it in the future.

                Chris

                Comment


                • #9
                  There was a little typo in my last code.
                  This is the right one:
                  Code:
                  for($node in `ls -sl`){
                  	string $shapes[] = `listRelatives -s -pa $node`;
                  	for($shape in $shapes){
                  		if($shape != "<done>" && `nodeType $shape`== "mesh"){
                  			print("VRay SubD:  "+$shape+"\n");
                  			string $cmd = "vray addAttributesFromGroup "+$shape+" vray_subdivision 1";
                  			eval($cmd);
                  		}
                  	}
                  }

                  Comment


                  • #10
                    it seemed to work though. thanks anyway.

                    Comment


                    • #11
                      Yes it did. But it could have failed and aborted.
                      It checked the wrong shapeNode.

                      /Fredrik

                      Comment

                      Working...
                      X