I thought I would give the new material library a look now that we finished our project. However, when I click the button on the VRay Toolbar nothing happens. No errors in the Listener Window or anywhere else.
I tried re-installing (well, I installed the new hotfix), but I still can’t get the button to do anything.
Thanks for the reply. Not much help I’m afraid. Not yet anyway.
I wonder if the issue has something to do with the fact that we run non-admin user accounts and VRay was installed using an admin account.
Does the installer take into account the use of non-admin accounts?
In that other thread it says the files are installed in Documents. Shouldn’t system wide files be installed in a system wide location, not in a user location? At the very least they could go in Public.
No security conscious sysadmin would ever run Windows with an admin account for their normal user.
The installer runs with elevated privileges, where shared folders are invisible for such processes (Windows security measure).
Try the following solution:
1. Start clean by uninstalling V-Ray and removing the Material Library
2. Install V-Ray with the Material Library download checkbox disabled
3. Download the Material Library through the “mtllib.exe” (located in “C:\Program Files\Chaos Group\V-Ray\3ds Max 2020\bin”).
Another thing - you can run the following MaxScript command to bring up the Asset Browser: vrayShowAssetBrowser()
Thanks, Aleksandar. I will do some more research. It is likely a path issue. I just wish it spit out an error message of some kind, rather than failing silently.
I ran mtllib.exe as my local non-admin user, and it copied the files to my own user’s Documents directory.
This works now. HOWEVER, I would STRONGLY encourage you to consider the correct placement for system wide files to be:
C:\Users\Public\Documents\
rather than putting these files into the Documents directory of the current user running the install. When you install as as admin user, but run as an underprivileged user (like everyone should) the files get put in the wrong place. Also, they are put into a per-user directory, even though these are system wide files that belong in a system wide (public) directory.
I would also encourage you to add an error message to the vrayShowAssetBrowser() function such that it displays an error when it cannot find the MatLib directory path. This should say something like “Unable to find the Material Library at C:\Users\Public\Documents” In other words it should include the directory it is looking for so the user knows why things have failed.
You can specify the folder to download to at install time.
Also: here, and you can run the mtllib.exe with command line flags:
-help - show this message and exit
-targetDir="c:\path\to\download" - select dowload direcory
-gui=0/1/2 - select GUI mode (0 - console, 1 - GUI, 2 - GUI and console)
-auto - perform automatic installation
-remoteUrl=https://example.com:443/source/url - remote URL to download from
-httpProxy=http://examplehttpproxy.com:80 - use specified HTTP proxy
-no-httpProxy - disable HTTP proxy auto detection and use direct connection
-verbosity=VGUI[,VCON] - select verbosity level of the messages
VGUI (0...4) - verbosity level of messages in the log window
VCON (0...4) - verbosity level of messages in the console output
-progress=0/1 - outptut progress status on the console.
-silent-check - Check if remote and local libraries are the same. Don't show
the GUI at all if versions match.
I’d counter that the vast majority of users log in with administrative rights on their home/ small office machine (i sure do. i prefer abstinence and control to laborious protection.), so installing stuff in the current user’s folder is a very good idea for me.
Max does this, Maya does this, Houdini does this: the list is nigh endless.
I have a ton of apps installed, my Public folder is less than 17 MB, so i’d go as far as saying that as we do it is the accepted de-facto standard for Windows installations.
Appeal to Populace is a fallacy. All those other programs are doing it wrong as well:-P . Chaos could lead the way here, rather than follow the confused herd.
There is NO downside and only benefit to doing it properly and putting shared data in a shared location. This way you can have multiple users on a machine with their own login accounts without duplicating data or jumping through hoops. Each user gets their own setup for everything. No loading in your shortcuts, etc.
I have argumented my point before showing it’s a standard (which, granted, you call “following the confused herd”.): i have admin rights on my machine, meaning my stuff is mine alone.
It’s rather yours the assumption that the library should be public to all accessing the computer.
Instead, putting it in a folder accessible only by the user renders it private by default.
It will still allow for an easy way to share the parts one wants, but will crucially stay private for the content one creates for themselves, or has otherwise no express intention of sharing.
As a practical example, It’s common enough in a studio to swap out places, and workstations, with someone f.e. at home ill.
Automatic access to the stuff of another user is an unwanted effect.
Further to this, per user settings can change, and one may want to have a super quick library loading 256 px samples, while another may want the samples to be @ 2k res.
User profiles is the way to go.
Once again, it’s only an easily changeable default anyway, people will be able to do as they please, before or after the library has been installed.