Announcement

Collapse
No announcement yet.

Checking if Subdivision attributes were selected

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

  • Checking if Subdivision attributes were selected

    Hi,
    In a c++ plugin for maya, how can I check if a shape had its Vray attributes set to "Subdivision" ?
    Thanks !

  • #2
    Is it a custom geometry plugin, or just a mesh?

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

    Comment


    • #3
      Just a mesh

      Comment


      • #4
        Ok then; can you not simply check for the existence of the V-Ray subdivision attributes and their values on the DAG node? Just like you would do for any other attribute of the mesh shape.

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

        Comment


        • #5
          Oh thanks, sounds indeed basic. Didn't know these were stored as normal attributes.
          I was missing the attribute name, which I found by saving the file: vraySubdivEnable

          Comment


          • #6
            Actually, you can just look into the script editor. Maya prints your actions as MEL commands, so whatever you do with the attributes will show their names.
            V-Ray/PhoenixFD for Maya developer

            Comment

            Working...
            X