Jump to content
  • Advertisement
Sign in to follow this  

paintable attribute in C++ Maya

This topic is 3693 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
Sign in to follow this  

  • Advertisement

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!