Feedback

What's your question?

By: [ Editor ] Asked

How do I use artisan to paint on a node other than a mesh in Maya?

I've got a problem with painting a doubleArray attribute with paintScriptTool on a node different that a mesh.

Here's working scenario:

  • create a polyPlane

  • addAttr -ln "paint" -dt "doubleArray pPlaneShape1

  • setAttr -type doubleArray pPlaneShape1.paint 16 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

  • set artisan 'GetArrayAttrCommand' to a proc that returns: " -grid 4 4 pPlaneShape1.paint "

In this example I can paint with no problem. However if I add 'paint' attribute to a locator node and modify GetArrayAttrCommand accordingly, I can paint no more. I must be missing some details. Any hints are appreciated, thanks.

Add comment viewed 164 times Latest activity 11 months ago

or Cancel

1 answer

  • 2

michalf [ Editor ]

I got the solution apparently it works, if a node hosting doubleArray attribute, also has an attribute that connects to worldMesh of painted object. It doesn't have to be used, only connected.

NN comments
julian
-

Thats good to know.

I was just looking at this when I noticed you found the solution.

or Cancel