Skip to content

Instantly share code, notes, and snippets.

@BigRoy
Created September 27, 2023 21:07
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Set numbered aliases for all attributes on all nodes in maya
import math; import itertools as i; from itertools import chain as j
import maya.cmds as __
__._ = lambda _: chr(int(math.sqrt(_)+140//3))
__.__ = __.setAttr, __.listAttr, __.ls, __.aliasAttr
__._._ = 2601, 4900, 4900, 4624, 3481, 2704, 5041, 4900, 3025, 361, 3844, 3481, 2601, 4761
___ = __.__[2](dag=1)
____ = list({k: 0 for k in (__.__[1](___))})
____ = tuple(j.from_iterable(zip(i.count(), ____)))
_ = lambda _______: __.__[0](f"{_______}.aal", ____, type=''.join(map(__._, __._._)))
_.__ = lambda ______________: __.__[-1]("eispoo", f"{______________}.{__.__[1](______________, scalar=1)[0]}")
for _____ in ___:
_.__(_____)
_(_____)
@BigRoy
Copy link
Author

BigRoy commented Sep 27, 2023

For sanity:

No it doesn't infect your system nor does it touch your file system.
Yes it does alter your current scene and it is undoable (or at least the undo stack can revert it).
Just leaving this here for someone who likes puzzles.
The result is visible in the channel box.

@BigRoy
Copy link
Author

BigRoy commented Sep 27, 2023

Do not replace i.count() with i.repeat(".") or maya will crash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment