Exporting vertex color as texture map using Mel or Python commands

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
  01 January 2013
Exporting vertex color as texture map using Mel or Python commands

I am able to export a vertex color map using the paint vertex Color tool attribute maps export button, but this does not dump out mel code in the script editor for me to look at.
I have also looked up in the mel and python docs and have found this command: artAttrPaintVertexCtx, but the documentation is very poor and I can't seem to figure out how to use it.

Help is appreciated in either mel or pyhton. This is what I have so far (which does not work)
import pymel.core as pm
pm.artAttrPaintVertexCtx('artAttrPaintVertexCtx10'  )
pm.setToolTo('artAttrPaintVertexCtx10')
pm.artAttrPaintVertexCtx('artAttrPaintVertexCtx10'  , edit = True, esf = 'c:\attrMap.tif' )


error generated:
# Error: RuntimeError: file C:\Program Files\Autodesk\Maya2013\Python\lib\site-packages\pymel\internal\pmcmds.py line 134: Failed to export the attribute map. # 

Thanks
 
  01 January 2013
I'm not sure how to do this either, but at first glance you should fix your path from
'c:\attrMap.tif'

to

'c:\\attrMap.tif'
#or
'c:/attrMap.tif'
__________________
..aut inveniam viam aut faciam..
::Copy SOP 4 Maya::
 
  01 January 2013
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 12:09 AM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.