Maya contexts with maya.standalone

Skip to first unread message

Chris Granados

Mar 29, 2021, 3:44:24 PMMar 29
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?


Matteo Di Lena

Apr 10, 2021, 7:15:02 AMApr 10
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

Apr 10, 2021, 7:46:08 AMApr 10
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
To view this discussion on the web visit
Character Animator- CG Supervisor
Cel.: +(54911) 40640097
Tel.: +(5411)  45460877
Bs. As., Argentina
Reply all
Reply to author
0 new messages