Ended up doing just that. Just hoped there would be a more simple way thoughWhat you can do is take a segment of your wheel in your case 1 tenth with the hole and do a duplicate special as a instance, when you are happy with the hole size delete the instances and redo with copies..............dave
Plus I think MEL might even be too slow for that. I can't imagine how that will bog down with any kind of high res mesh.You need to understand what the MEL commands are actually doing. It's referencing specific vertices/faces etc. Obviously with different points, you will need to use a different command, so what you're doing won't work. You would need to figure out how to traverse the topology, which isn't worth the time. MEL can't save you from everything
How would MEL scripting do this? Is there any way that MEL can find vertex groups just like the new tool in 2014 'Select similar'?You need to understand what the MEL commands are actually doing. It's referencing specific vertices/faces etc. Obviously with different points, you will need to use a different command, so what you're doing won't work. You would need to figure out how to traverse the topology, which isn't worth the time. MEL can't save you from everything
Is there any tutorials how to do this? I have barvley been working in MEL, but would love to learn if i can find any positive shortcuts such as this. thanks for the replyIt all depends on how you traverse the mesh. However, yes, using the Maya C++ API or the Python wrappers would be faster.
What are the advantages of learning C++? and how come ive never heard of it, when i see tutorials i can only see people using MEL. When do i use C++? I would be interested in learning to code if it can benefit for my modeling ... but i dont know where to beginIf you just started with MEL, you have a long way to go before you get to the API. For that you need to learn C++, memory management, etc.
Thanks for the reply man, definatly got me a good picture of how diffrent coding languages work within maya. all this has been a mystery to me for a long time now haha.C++ is a compiled language rather than an interpreted language. This means that the code you write is converted (compiled) into machine instructions. MEL and Python are interpreted languages meaning that it goes through line by line, reads the command, converts the data, then executes the command. Obviously compiled code will be faster, as the code is compiled once, rather than every time the script is run.
The reason why it is much harder to find examples of the C++ Maya API is that it is much lower level than the MEL and Python wrappers; a lot of the functionality is left for you to implement. It also takes much more time to learn the API, develop new plugins, and maintain them with newer versions of Maya. You need to have a good grasp on what Maya is doing in the background (DAGs, etc) as well.