This can be a really helpful way to quickly get the selection you are looking for by adding an additional component selection to define the area first.īuwaneka Saranga makes the script available for download, so check out the Grow Selection Within Region MEL script. The Paint Scripts Tool settings determine the size, position, angle, and density of the cones. For example, if the object is a cone, you can paint cones on the surface using the geometryPaint script. Using the Grow Selection Within Region script, you can have the selection feature stop at a defined place. geometryPaint Use this script to select predefined objects in your scene and then paint them on a selected surface. You can do this easily by selecting a perimeter with an additional edge selection. By using the script, you can both grow and shrink selections based on a user driven set or confined area. This is where Buwaneka Saranga’s script can help. So you might have encountered times when you over-grow a selection too far and try to back up, but the section isn’t really what you are looking for any longer. The basic file command is used to export and import the objects. Of course, it’s best to use the usual for () cycle to run this on every selected object one by one. This is a widely used method to fix object issues in Maya. Simply use the ‘ ls ’ command with the ‘ select ’ flag, abbreviated as ‘ sl ’: string select ls -sl If your script changes the active selection you may wish to restore it when it is appropriate to do so. There are times when backing up doesn’t choose the same path as it did when you grew the section. Export selection as obj and import back using the always existing userTmpDir folder. It is easy to get the current selection list using MEL. There is a bit of a discrepancy between the faces that were grown out of a selection and shrunk out of the same selection. ![]() In all, it is really useful for quickly gaining a selection of faces without having to pick them individually. Similarly, hitting shift + < will shrink the section. If you have a face section in Maya, you can either grow the selection by hitting shift + > on the keyboard. Are you just trying to avoid baking keyframes. ![]() Also select 'joint1.rx' should select the actual channel, but will not highlight in the Channel Box. So maybe I should select them one by one in some for loop or something. So, setKeyframe 'joint1.rx' will key that channel without having to do anything with the Channel Box. I don't know how to do that because when I wrote: select -r 'shd' it send me the message: More than one object matches name: shd //. Freelance Motion Graphics Designer and Compositor, Buwaneka Saranga shares a workflow enhancement script for Autodesk Maya that improves upon its Grow and Shrink Selection feature.Ī tiny MEL script that will let you grow faces confined to an area. I need select all objects in Maya with name 'shd' and after that I need assigned to them specific material.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |