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

From The Foundry MODO SDK wiki
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