Change material library with laser?

Check this post for how this can work: