select or copy this python code and drag to script editor in maya python tab and run and copy macaddress and send.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
import maya.cmds as cmds import uuid def getm(): mac_num = hex(uuid.getnode()).replace('0x', '').upper() mac = '-'.join(mac_num[i : i + 2] for i in range(0, 11, 2)) return mac getmac = "getmac" if cmds.window(getmac,exists = True): cmds.deleteUI(getmac) cmds.window (getmac,menuBar= True, title ="Get mac addres", h =20 ,w =20 ) cmds.columnLayout("cuMain", adj= 1 ) cmds.textField( "name", tx=getm() ) cmds.showWindow (getmac) |
send MacAddress :
Recent Comments