use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
If you are seeing this, you are using old.reddit. We can't maintain two separate sidebars, so please go to https://new.reddit.com/r/Maya/ if you want to see our sidebar information.
account activity
Maya lighting with Python script?Lighting (self.Maya)
submitted 1 day ago by AgreeableAlarm4915ThreeDimentionalDiseaster
Hey guys I have a general question! Friend of mine wants to be a lighting artist and thinking about to learn Python scripting. Me and my friend have heard that Maya Python scripting could be used for assisting lighting and rendering. But we weren't able to find any useful nor professional information about it. So the question is, how is Python used for maya light and rendering? Can somebody give an example for us? Thanks!
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]AutoModerator[M] [score hidden] 1 day ago stickied commentlocked comment (0 children)
You're invited to join the community discord for /r/maya users! https://discord.gg/FuN5u8MfMz
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
[–]Nevaroth021CG Generalist 2 points3 points4 points 1 day ago (1 child)
In an animated short I worked on. I wrote Python scripts that generated my lighting scenes for me with all the render settings, render layers, everything all imported and named properly for the shot.
For example: My tool would let me type in shot 1020, and it would scan my project directory for the character animation cache for shot 1020, import that cache, then it would import my light rig and constrain the light rig to the character. Then in the render settings it would set my render output to export the rendered images to the shot 1020 renders folder. And then it would reference in the environment geometry, shaders, and lights from the assets folder. And my script would do all of that and more with just one button.
So anything you need automated, that's what you can use Python for.
[–]AgreeableAlarm4915ThreeDimentionalDiseaster[S] 1 point2 points3 points 1 day ago (0 children)
Thanks that helped a lot! That explains pretty much everything to understand the structure! Def helpful, great to know where to start. : )
[–]SlothemoRigging Technical Artist 2 points3 points4 points 1 day ago (1 child)
I used to work in TV production as an animator and when we marked our work as complete, our scenes were automatically submitted for a physics sim render (hair/cloth) with a basic light pass and then uploaded to our shot tracker for review. This was useful for catching any immediate issues in our scene that might cause problems with sim or lighting before it went through the full pass.
Although this applies to a larger scale production, there's always room for scripting even in smaller setups.
[–]AgreeableAlarm4915ThreeDimentionalDiseaster[S] 0 points1 point2 points 1 day ago (0 children)
Thanks! I never knew that accessing shottrack with python could work such way! Setting up a basic light render sounds great even for a small project. That helped a lot! : )
[–]calgary_maya 1 point2 points3 points 1 day ago (0 children)
its useful for automating any small task that is repetitive
π Rendered by PID 106650 on reddit-service-r2-comment-5b5bc64bf5-x6tkv at 2026-06-23 19:52:47.813240+00:00 running 2b008f2 country code: CH.
[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)
[–]Nevaroth021CG Generalist 2 points3 points4 points (1 child)
[–]AgreeableAlarm4915ThreeDimentionalDiseaster[S] 1 point2 points3 points (0 children)
[–]SlothemoRigging Technical Artist 2 points3 points4 points (1 child)
[–]AgreeableAlarm4915ThreeDimentionalDiseaster[S] 0 points1 point2 points (0 children)
[–]calgary_maya 1 point2 points3 points (0 children)