Maya 2020 fundamentals - modelling the real world
Get halfway through a model and find it's an unworkable mess? Can't add edge loops where you need them? Can't subdivide a mesh properly? If any of this sounds familiar check this course out.
# 1 26-10-2020 , 09:34 AM
Registered User
Join Date: Oct 2020
Posts: 11

Variable expansion in *.mod module files?

At least on Windows, it appears that Maya will do the variable expansion of %OUR_MODULE_PATH% in the first ("+") line. But it will not do the same expansion on the subsequent path and environment lines. So it finds the base path to the module given by %OUR_MODULE_PATH% in that first line, but all the subsequent uses of environment variables, like %OUR_MAYA_VERSION%, remain unexpanded and so the strings are not built as expected.

The documentation for module files doesn't seem to address this - is this correct? It is unfortunate that the variable expansion wouldn't be done for the entire file, as modules might have almost identical setups for multiple versions of Maya, differing only in something like a part of a path that could be controlled by an environment variable in this manner.

Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads