MetaFusion/Reference/MSLiveLink/userSetup.py
2025-02-03 22:58:41 +08:00

23 lines
582 B
Python

"""
Maya checks for userSetup.py file and runs it while loading other libraries at the start of the program
This Module :
- Creates the shelf in Maya
- Starts the LiveLink
"""
from maya import cmds
from DHI import PluginLoader
from LiveLink import initLiveLink
from Megascans import Installer
# Runs this code automatically at the start of Maya
cmds.evalDeferred("initPlugin()")
# Delete Old Shelf, create a new shelf (install livelink) and start the listening at socket/start LiveLink
def initPlugin():
PluginLoader.load()
Installer.createMSshelf()
initLiveLink()