Maya contexts with maya.standalone

50 views
Skip to first unread message

Chris Granados

unread,
Mar 29, 2021, 3:44:24 PM3/29/21
to Python Programming for Autodesk Maya
Hi everyone,

I'm trying to run a batch process with headless Maya using maya.standalone.initialize().

Problem is when I get to the Maya Contexts (artAttrPaintVertexCtx in this particular case) they are never created (returns False instead of the context name).

Is there a way to work with Maya Contexts in maya.standalone?

Thanks!


Matteo Di Lena

unread,
Apr 10, 2021, 7:15:02 AM4/10/21
to Python Programming for Autodesk Maya
Hey Chris,

I never worked with contexts in standalone, but I think they're supposed to be an event that allows Maya to manipulate objects/weights in the viewport based on mouse interaction, so that's probably why they return False.

Chris Granados- Xian

unread,
Apr 10, 2021, 7:46:08 AM4/10/21
to python_in...@googlegroups.com
Thanks for your reply!

Yeah, sadly there are functions ran by these contexts that could be used without mouse interaction but since they are part of the context they are not accessible from Maya headless, which is a shame because there is a lot of automation and batch processing that could be made with that in my job.

--
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 python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/e398915c-d1ac-4c72-9b46-7030ebeb91fcn%40googlegroups.com.
--
CHRIS GRANADOS - Xian
Character Animator- CG Supervisor
www.chrisgranados.com
Cel.: +(54911) 40640097
Tel.: +(5411)  45460877
Bs. As., Argentina
Reply all
Reply to author
Forward
0 new messages