# -*- Mode: Python -*- # -*- coding: ascii -*- """ This is a LightWave Generic plug-in that opens a directory, in this case the content directory using a magic string """ __author__ = "Michael Wolf" __date__ = "Jan 21 2020" __copyright__ = "Copyright (C) 2020 db&w GbR" __version__ = "1.0" __maintainer__ = "Michael Wolf" __email__ = "michael.wolf@db-w.com" __status__ = "Example" __lwver__ = "2018" try: import lwsdk except ImportError: raise Exception("The LightWave Python module could not be loaded.") ga = lwsdk.GenericAccess() if ga.valid(): name = "Content" ga.evaluate("Generic_dbwOpenDir %s" % name)