@Kahylan .
Thank you for all your great scripts. You have always helped me. Thank you.
Hi! @fenglelyng .
There are many different ways to learn. Please refer to these. Search in both Python and mel as much as possible. It is difficult to think of code from scratch. Copy and paste it.
There are some sites you will definitely use when you are scripting. You don't have to remember them all. Search for the function you want to use here too.
You can find it quickly by using Ctrl+F and entering keywords in the browser.
https://help.autodesk.com/view/MAYAUL/2023/ENU/index.html?contextId=COMMANDSPYTHON-INDEX
There are various ways to find this site: start Maya, press F1 and help will open in your browser. You will see a scrollbar on the left-hand side.
Scroll down it and click on Technical Documentation and then Python Commands to be sure.
Of course, you can also select Technical Documentation from the list on the right-hand side.
You can also choose Help>Script Reference>Python Command Reference in the Help menu on the right-hand side of Maya.
If you want to look for it on the internet, search for Maya version number python reference and you will find Help Home at the top, which will take you to the same page as when you press the F1 key.
Check the version of Maya listed on the site when using it.
Tutorial videos are also available. A particularly good one is Chris Zurbrigg's tutorial. Both paid and free tutorials are available.
Click View All on Chris Zurbrigg's tutorials and try the ones at the bottom under Getting Started (free and basic).
https://zurbrigg.teachable.com/
Sorry. I am in Japan and only know of Japanese books. I'm sorry to trouble you, but please try to find it.
You can also use Stack Overflow.
You can ask @Kahylan in the Maya Programming forum of the Autodesk Maya Forum. I'm also in the process of learning, so let's both do our best.