Find Plug-in (C++ only) path by server name

From The Foundry MODO SDK wiki
Revision as of 05:16, 8 March 2016 by Ivo.grigull (Talk | contribs) (Created page with "{{Snippet |summary=Sometimes you want to diagnose if a plug-in dll file was loaded or where it is located on disk. The Host service provides a way. |code=<syntaxhighlight lang...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Description:

Sometimes you want to diagnose if a plug-in dll file was loaded or where it is located on disk. The Host service provides a way.

Code:

h = lx.service.Host()
f = h.LookupServer('command', 'morphDeform.mapName', 0)
print f.Module()
# Result: 
#'deform.lx'
# Note: External plug-ins will show the full absolute path