Skip to content

Instantly share code, notes, and snippets.

@EricTRocks
Created September 6, 2016 20:49
Show Gist options
  • Save EricTRocks/84eb7b9eddeb2bce8d6650300056cc83 to your computer and use it in GitHub Desktop.
Save EricTRocks/84eb7b9eddeb2bce8d6650300056cc83 to your computer and use it in GitHub Desktop.
Reload KL Extension from Python
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