In the next tutorial we would apply array-specific functions. Never forgot to use “” after the variable declaration so that MEL understand what to declare. I know there is command polyEvaluate -edge but I don't know how to do it on object from an array. If edge count exceeds some number, then I would like to print the name of that object. Arrays are only and only a set of variables combined in one variable. I also would tell you three functions used exclusively with arrays. Accessing them is possible only by using the relative key(index). Hi, I would like a script, preferably Mel that counts edge count of selected objects. Learning MEL Step 7 Arrays (Part 1) In this part we are going to cover arrays in MEL. Now this is an array with all sorts of data in string, int, float and Boolean.Īrrays are variables with capability of storing several variables with various data-type. If you want to assign it some sorts of data, then you must open a “ The process is the same but with some extra steps to take:Īfter the name of variable, without any space, “” sign must be used. Now, I go into a comprehensive discussion of arrays in MEL. But then how you can access them? Simply by using index of the element in the array. But what if you wish to put both variables in one variable? The solution is simple, array. I would like a script, preferably Mel that counts edge count of selected objects. print There is something else except meshes and transforms in the selection. The above example is not new to you, since we have already covered them. python, maya Iurii September 11, 2018, 11:17pm 1. If you want to print them you simple would refer to them directly such as: What: MEL (Maya Embedded Language) is a scripting language in Maya that allows you to automate workflows. You have in a regular variable declaration: I also would tell you three functions used exclusively with arrays.Īrrays are only and only a set of variables combined in one variable. In this part we are going to cover arrays in MEL.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |