SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.

SM Forums / Lounges / Maya Basics & Newbie Lounge / Variable expansion in *.mod module files?

Maya Basics & Newbie Lounge Please post in this section ONLY if your question doesn't fit in anywhere else on the forum, or if you're not sure which section it's relevant to. We also have Free streaming trial available.

Join the conversation. Reply to post
Thread Tools
26-10-2020, 09:34 AM   #1
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.
  Reply with quote

Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Command window error on Maya 2012 filip321 Maya Technical Issues 0 04-11-2015 08:46 PM
Crash when painting weights Krazypoe Maya Technical Issues 0 07-12-2014 11:58 PM
Mental Ray crashing scene? JustMcCollum Maya Technical Issues 7 10-05-2013 04:15 PM
Maya File error Ozgalis Maya Basics & Newbie Lounge 5 11-04-2013 02:39 AM
HELP PLEASE Dushyant Maya Technical Issues 12 25-08-2012 08:49 AM