tools:opendir
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| tools:opendir [2020/01/24 15:03] – created lightwolf | tools:opendir [2025/04/01 10:13] (current) – [Pre-defined directory names] lightwolf | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| By default this will open the settings directory, but can be used in simple scripts to open any directory. | By default this will open the settings directory, but can be used in simple scripts to open any directory. | ||
| + | |||
| + | The following script uses this plugin to open the content directory. | ||
| + | |||
| + | <code python OpenDir.py> | ||
| + | # -*- 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__ | ||
| + | __date__ | ||
| + | __copyright__ | ||
| + | __version__ | ||
| + | __maintainer__ = " | ||
| + | __email__ | ||
| + | __status__ | ||
| + | __lwver__ | ||
| + | |||
| + | try: | ||
| + | import lwsdk | ||
| + | except ImportError: | ||
| + | raise Exception(" | ||
| + | |||
| + | ga = lwsdk.GenericAccess() | ||
| + | if ga.valid(): | ||
| + | name = " | ||
| + | ga.evaluate(" | ||
| + | </ | ||
| + | |||
| + | ===== Pre-defined directory names ===== | ||
| + | LightWave 3D uses certain " | ||
| + | |||
| + | If the directory doesn' | ||
| + | |||
| + | ^Name ^Description^ | ||
| + | |Content|Current content directory| | ||
| + | |Animations|Animation directory in the current content directory| | ||
| + | |Images|Image directory in the current content directory| | ||
| + | |Envelopes|Envelope directory in the current content directory| | ||
| + | |Motions|Motion directory in the current content directory| | ||
| + | |Objects|Objects directory in the current content directory| | ||
| + | |Plug-ins|Plugins directory in the current installation(!) directory| | ||
| + | |Previews|Previews directory in the current content directory| | ||
| + | |PSFonts|Directory used by Modeler to load additional Postscript fonts to be used by the Text tool| | ||
| + | |Scenes|Scenes directory in the current content directory| | ||
| + | |Settings|Settings directory for LightWave 3D, usually located within the user profile| | ||
| + | |Surfaces|Surface directory in the current content directory| | ||
| + | |Nodes|Nodes directory in the current content directory| | ||
| + | |Sounds|Sounds directory in the current content directory| | ||
| + | |Dynamics|Dynamics directory in the current content directory| | ||
| + | |Rigs|Rigs directory in the current content directory| | ||
| + | |Install|Installation directory of LightWave 3D| | ||
| + | |Lights|Lights directory in the current content directory| | ||
| + | |Radiosity|Radiosity directory in the current content directory| | ||
| + | |VertCache|Certex Cache directory in the current content directory| | ||
| + | |Shaders|Shaders directory in the current content directory, not used anymore| | ||
| + | |||
| + | ---- | ||
| + | [[https:// | ||
| + | This is a small bonus plugin for January 2020, made possible by the finest patrons on [[https:// | ||
tools/opendir.1579874605.txt.gz · Last modified: by lightwolf
