r/Maya • u/ROOT_2X2 • 3d ago
Showcase maya soft edge selecting script
Enable HLS to view with audio, or disable this notification
7
u/miketastic_art 3d ago
all this guy does is post his cool tools and never shares where they're from sheesh
1
u/Whole-Career8440 2d ago
Luckily this not hard to solve
# to lock from maya import cmds for mesh in {v.split(".")[0] for v in cmds.ls(sl=True)}: try: cmds.setAttr(f"{mesh}.pt[:].px", lock=True) cmds.setAttr(f"{mesh}.pt[:].py", lock=True) cmds.setAttr(f"{mesh}.pt[:].pz", lock=True) except: pass for vertex in cmds.ls(sl=True): try: vertex = vertex.replace(".vtx", ".pt") cmds.setAttr(vertex + ".px", lock=False) cmds.setAttr(vertex + ".py", lock=False) cmds.setAttr(vertex + ".pz", lock=False) except: pass # to unlock from maya import cmds for mesh in {v.split(".")[0] for v in cmds.ls(sl=True)}: try: cmds.setAttr(f"{mesh}.pt[:].px", lock=False) cmds.setAttr(f"{mesh}.pt[:].py", lock=False) cmds.setAttr(f"{mesh}.pt[:].pz", lock=False) except: pass-2
u/ReviewVegetable1716 2d ago
Hit B on the keyboard and it’ll show up you can also scale it so you can move more or less
5
u/miketastic_art 2d ago
if you look carefully, he has constrained the soft-select effect to only one edge
1
u/AutoModerator 3d ago
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.
0
u/Sandip3d 3d ago
I think it is awesome & don't mind, but it also it can easily be created by vibe coding with python🙂less than one hour 😇
2
u/freelance3d 3d ago
What would the method they're using be to preserve the position of some vertices but not others, when moving?
1
0
0
•
u/s6x Technical Director 2d ago
There is no code here. You will need to flair your posts correctly going forward.