--
You received this message because you are subscribed to the Google Groups "rez-config" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rez-config+...@googlegroups.com.
To post to this group, send email to rez-c...@googlegroups.com.
Visit this group at https://groups.google.com/group/rez-config.
For more options, visit https://groups.google.com/d/optout.
plugin packages do not know anything about each other.
So could i inject information into the resolve during resolve per package so that the max package knows which plugins it needs to include in its ini files?
And have the plugins provide their ini files?
Hey there,good points. I was not aware that i can save arbitrary information to the resolve object. I think that makes most sense. I had thought aboute using env variables but i think i prefer the resolve object (for no particular reason whatsoever actually heh)
Assembling a full ini in max of course also works. The only difference is that i am adding paths instead of ini files in the include section. The more i can put into rez (without hacking it) the better from my current point of view. But i will need to do the plugin.ini generation in a max wrapper unless i can force max to be evaluated last because if max is evaluated before a plugin it will miss it. Unless of course the resolve object is created during resolving before actually creating the environments, then i could stick it into the resolve object and it should have all.
In regards to cleaning up, we would need that anyways. But i think that for different purposes both features would make sense. e.g. the plugin.ini in the package temp vs. other setup/teardown stuff that has to happen elsewhere (e.g. making changes to a locally installed application's folder or alike).Cheers and thanks again!Thorsten
env.MAX_PLUGINS.append(r"{root}\Program Files\Autodesk\3ds Max " + str(env.REZ_3DSMAX_VERSION) + r"\plugins") env.MAX_PLUGINS.append(r"{root}\Program Files\Autodesk\3ds Max " + str(env.REZ_3DSMAX_VERSION) + r"\plugins\vrayplugins")plugin_filename = os.path.join(tempfile.gettempdir(), str(os.getpid())+"_plugin.ini")
with open(plugin_filename, "w") as ini: ini.write("[Directories]\n") ini.write(r"local=C:\Program Files\Autodesk\3ds Max 2016\plugins" + "\n") for idx, path in enumerate(os.getenv("MAX_PLUGINS", []).split(";")): ini.write(str(idx) + "=" + path + "\n")