question

Alan Jones avatar image
Alan Jones asked ·

Maya Modules and Arnold Plugins

Hi all,

So in the docs (https://help.autodesk.com/view/MAYAUL/2020/ENU/?guid=Maya_SDK_MERGED_Distributing_Maya_Plug_ins_Distributing_Multi_File_Modules_html) it discusses packaging modules for Maya, but in this it doesn't address whether there's any support for Arnold plugins within Maya modules or how one would go about that.

Is there a way to append to environment variables within mod files? That seems like one potential path to being able to package Arnold plugins in a maya module. If not, is there some other approach or syntax I could use for this?

Same thing applies for mtoa extensions and their configuration.

I've got significant interdependencies between maya tooling and arnold plugins, so I'd like to be able to package them together cleanly, without requiring any non-standard installation steps for users if possible.

Cheers,

Alan.

arnoldmtoapluginsextensions
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

1 Answer

· Write an Answer
Stephen Blair avatar image
Stephen Blair answered ·

Hi Alan


You can append to environment variables:


From https://help.autodesk.com/view/MAYAUL/2020/ENU/?guid=Maya_SDK_MERGED_Distributing_Maya_Plug_ins_Maya_module_paths_folders_and_html

Append to the current value of a variable

You can append to the current value of a variable using the + and/or : operators. Examples as follows:

PATH += c:/myModule/bin adds ;c:/myModule/bin to the current value of the environment variable PATH.

PATH +:= bin adds ;’module location’/bin to the current value of the environment variable PATH.


Also see this page: https://around-the-corner.typepad.com/adn/2012/07/distributing-files-on-maya-maya-modules.html



Arnold plugins and MtoA extensions can be "installed" in MtoA through environment variables.


With something like Yeti, which provides it's own Maya nodes and plugin, and also Arnold plugins and MtoA extensions, you can use a module file.


See this old example:

https://arnoldsupport.com/2014/10/30/mtoa-pimping-your-yeti-module-file/


Maybe now I would set ARNOLD_PLUGIN_PATH in my Yeti mod file.


Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Welcome to the Arnold Answers community.

This is the place for Arnold renderer users everywhere to ask and answer rendering questions, and share knowledge about using Arnold, Arnold plugins, workflows and developing tools with Arnold.

If you are a new user to Arnold Answers, please first check out our FAQ and User Guide for more information.

When posting questions, please be sure to select the appropriate Space for your Arnold plugin and include the plugin version you are using.

Please include images, scene and log files whenever possible as this helps the community answer your questions.

Instructions for generating full verbosity log files are available for MtoA, MaxtoA, C4DtoA, HtoA, KtoA, and Kick.

If you are looking for Arnold Documentation and Support please visit the Arnold Support site.

To try Arnold please visit the Arnold Trial page.

Bottom No panel present for this section.