Announcement

Collapse
No announcement yet.

Maya subdivision displacement - how to ?

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

  • Maya subdivision displacement - how to ?

    Heya

    Just trying to figure it out... How do I get it to work ?

    I found this script, but I'm interested in learning how to do it by hand...

    http://www.disopolis.com/wordpress/2...flag-for-maya/

    Thanks, bye.
    CGI - Freelancer - Available for work

    www.dariuszmakowski.com - come and look

  • #2
    I rewrote that script a bit, I commented out some extra commands for you to remove or set the specific options. It should work on all poly meshes which are in current selection, but I also left an option to put all meshes in scene you will need to replace the $relatives with $Sel2

    //will work on selected
    string $Sel1[] = `ls -sl`;
    string $relatives[] = `listRelatives -shapes $Sel1`;
    //will work on all
    //string $Sel2[] = `ls -type "mesh"` ;


    for ($i=0;$i < size($relatives);$i++)

    {

    vrayAddAttr $relatives[$i] vraySubdivEnable;
    vrayAddAttr $relatives[$i] vraySubdivUVsAtBorders;
    vrayAddAttr $relatives[$i] vraySubdivUVs;

    //setAttr ($relatives[$i] + ".vraySubdivEnable")1;
    //setAttr ($relatives[$i] + ".vraySubdivUVsAtBorders")1;
    //setAttr ($relatives[$i] + ".vraySubdivUVs")1;

    //vrayDeleteAttr $relatives[$i] vraySubdivEnable;
    //vrayDeleteAttr $relatives[$i] vraySubdivUVsAtBorders;
    //vrayDeleteAttr $relatives[$i] vraySubdivUVs;

    };

    Btw I would suggest to create a control node to connect to multiple objects so you can control their enable/subdiv option with one click rather then a script later, it can also be layer overridable...which can be handy.
    Last edited by Morbid Angel; 17-09-2012, 08:45 PM.
    Dmitry Vinnik
    Silhouette Images Inc.
    ShowReel:
    https://www.youtube.com/watch?v=qxSJlvSwAhA
    https://www.linkedin.com/in/dmitry-v...-identity-name

    Comment


    • #3
      interesting, thanks !

      Still, I know how to use this subdiv in max, what about maya? Where I add it and so on ? :s

      Vray for maya could really use some tutorials, or am I missing some obvious source?

      Thanks, bye.
      CGI - Freelancer - Available for work

      www.dariuszmakowski.com - come and look

      Comment


      • #4
        For a general description of the V-Ray extra attributes, look here: http://www.spot3d.com/vray/help/maya...xtr_atrrib.htm

        For the subdivision attributes specifically, look here: http://www.spot3d.com/vray/help/maya...rib.htm#Subdiv

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

        Comment


        • #5
          I think this area (with custom attributes) could be included into vray object properties (or similar node) otherwise without script it becomes somewhat difficult to manage multiple objects.
          Dmitry Vinnik
          Silhouette Images Inc.
          ShowReel:
          https://www.youtube.com/watch?v=qxSJlvSwAhA
          https://www.linkedin.com/in/dmitry-v...-identity-name

          Comment


          • #6
            In fact, you can already add the subdivision attributes to the vrayDisplacement node. In that case, it will work as though you have added subdivision attributes to all nodes connected to the vrayDisplacement node.

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

            Comment


            • #7
              Heya

              Got it to work, its quite well how the node system works. I link all of my meshes to 1 displacement node and all works well so far... gotta run some tests tho.

              In any case... How do I decide what displacement I'm using if I want to use displacement with textures? Like 2d/3d one etc etc?

              Thanks, bye.
              CGI - Freelancer - Available for work

              www.dariuszmakowski.com - come and look

              Comment


              • #8
                its another set of vray attributes where you can select which displacement it is.
                Dmitry Vinnik
                Silhouette Images Inc.
                ShowReel:
                https://www.youtube.com/watch?v=qxSJlvSwAhA
                https://www.linkedin.com/in/dmitry-v...-identity-name

                Comment


                • #9
                  Yea I saw that there is 3 set of attributed to pick from once I add displacement node to object. Ehh this maya is such a pain in the ass to manage, even with vray. I gotta sit down and go over papers, it aint as straight forward as max one heh.

                  Thanks, ciao.
                  CGI - Freelancer - Available for work

                  www.dariuszmakowski.com - come and look

                  Comment


                  • #10
                    I don't want to start a maya/max debate, but coming from max I find maya to be a better overall software. You just need to get used to the logic and find your way around things. Some things are better then in max, some things aren't, you can't have it all...
                    Dmitry Vinnik
                    Silhouette Images Inc.
                    ShowReel:
                    https://www.youtube.com/watch?v=qxSJlvSwAhA
                    https://www.linkedin.com/in/dmitry-v...-identity-name

                    Comment


                    • #11
                      Heya

                      Of course I dont mean that max is better than maya or anything like that. I just say that maya is a bit more difficult and vray is in a way following maya difficulty
                      CGI - Freelancer - Available for work

                      www.dariuszmakowski.com - come and look

                      Comment

                      Working...
                      X