Thanks for the responses guys - I cleaned up the path to use forward 
slashes and I *think* that should be working fine now.  Unfortunately, I'm 
now having a new issue.  Here is the current code:

import maya.cmds as cmds
# As Simon mentioned, I have the paint blendShape Weights tool open before 
running this
ctx = cmds.currentCtx() # Returns u'artAttrBlendShapeContext'
cmds.artAttrPaintVertexCtx(ctx, e=True, ifl='P:/BsMaps/half_l.tif', 
importfilemode='luminance')

Now I'm getting the error:

// Error: artAttrPaintVertexCtx: Object 'artAttrBlendShapeContext' not 
found.

# Traceback (most recent call last):

# File "<maya console>", line 5, in <module>

# RuntimeError: artAttrPaintVertexCtx: Object 'artAttrBlendShapeContext' 
not found. //


How can it not be found since the ctx variable just returned it?

On Wednesday, September 13, 2017 at 4:54:10 AM UTC-5, Simon Anderson wrote:
>
> Just gave it a try on a Windows machine, it works with only the single '/' 
>
> On Wednesday, 13 September 2017 12:23:15 UTC+10, Simon Anderson wrote:
>>
>> Will have to give that a try when I get home. At the moment I'm on a 
>> Linux box, and just double checked, singles dont seem to play fair
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/7c289d65-ba1d-42a6-bcc4-8ef641aa0bc7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to