Advertisement
Al3XXX

Untitled

Jul 27th, 2019
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.59 KB | None | 0 0
  1. macroScript ConnectNew
  2.     category:"CustomHotkeys"
  3.     toolTip:"Connect without Options and keyboard shortcut override toggle"
  4. (
  5.  
  6. local obj = modPanel.getCurrentObject()
  7. case classOf obj of
  8.     (
  9.         Editable_Poly :
  10.         (  
  11.         case subObjectLevel of
  12.             (
  13.                 1: ($.EditablePoly.ConnectVertices ())
  14.                 2: ($.EditablePoly.ConnectEdges ())            
  15.             )
  16.         )
  17.         Edit_Poly :
  18.         (          
  19.             case subObjectLevel of
  20.             (
  21.                
  22.                 1: ($.modifiers[#Edit_Poly].ButtonOp #ConnectVertices)
  23.                 2: ($.modifiers[#Edit_Poly].SetOperation #ConnectEdges
  24.                     $.modifiers[#Edit_Poly].Commit ()
  25.                     )                          
  26.             )
  27.         )
  28.     )
  29. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement