Created
September 6, 2016 20:49
-
-
Save EricTRocks/84eb7b9eddeb2bce8d6650300056cc83 to your computer and use it in GitHub Desktop.
Reload KL Extension from Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import FabricEngine.Core as fabric | |
import maya.cmds as cmds | |
# Get Client | |
contextID = cmds.fabricSplice('getClientContextID') | |
if contextID == '': | |
cmds.fabricSplice('constructClient') | |
contextID = cmds.fabricSplice('getClientContextID') | |
client = fabric.createClient({"contextID": contextID}) | |
client.loadExtension('Kraken', '', True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment