Jump to content
  • Advertisement
Sign in to follow this  
malu

paintable attribute in C++ Maya

This topic is 3632 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, When i create a mesh, modelling in Maya, i can add paintable attributes whith MEL instructions: select pPlaneShape1; addAttr -ln "paintAttr" -dataType "doubleArray"; makePaintable "mesh" "paintAttr"; But when i create a mesh in C++ Maya with the create function and i try to aply the same MEL instructions: select pPlaneShape2; addAttr -ln "paintAttr" -dataType "doubleArray"; makePaintable "mesh" "paintAttr"; Maya let me create the attribute but don't let me paint it... it says that: // Warning: |polySurface2|polySurfaceShape2 is missing attribute paintAttr. That's because Maya adds the attribute to polySurface2 but it doesn't to polySurfaceShape2. The new attribute "paintAttr" has to be in polySurfaceShape to make it possible to paint. I'm wonder if there's an instruction C++ or MEL that i can use in the Mesh created in C++ to make this possible? Any suggestion? Thanks, Malu

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!