# Alembic as Proxy, shaders assignments?

**URL:** <https://forums.chaos.com/t/alembic-as-proxy-shaders-assignments/56857>\
**Category:** General\
**Created:** [January 23, 2016, 8:43am UTC](https://forums.chaos.com/t/alembic-as-proxy-shaders-assignments/56857 "2016-01-23T08:43:41Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![brobins](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/brobins/32/5913_2.png) [@brobins](https://forums.chaos.com/u/brobins)\
**Post date:** [January 23, 2016, 8:43am UTC](https://forums.chaos.com/t/alembic-as-proxy-shaders-assignments/56857/1 "2016-01-23T08:43:41Z")

</div>

Hi there

What is the general workflow for using alembic files as vray proxies and having control over the shaders via the VrayMeshMtl?

If I export a .vrmesh and load as a proxy I usually get a list of all the shaders assigned at the time, these can then be overridden via the VrayMeshMtl. Using the same workflow but exporting an .abc file I only get a list of shape names in the VrayMeshMtl rather than the shaders. To my knowledge Maya writes the shading group names to the Alembic file by default, can the VRay proxy read this information rather than listing the shape names?

I am probably missing something obvious here. Would appreciate any pointers.

Thanks in advance.

Ben

---

<div class="post-metadata">

**Author:** ![vlado](https://avatars.discourse-cdn.com/v4/letter/v/779978/32.png) [@vlado](https://forums.chaos.com/u/vlado)\
**Post date:** [January 25, 2016, 9:50am UTC](https://forums.chaos.com/t/alembic-as-proxy-shaders-assignments/56857/2 "2016-01-25T09:50:18Z")

</div>

> [@Very long render times for Phoenix](https://forums.chaos.com/t/very-long-render-times-for-phoenix/49757/8):
>
> To my knowledge Maya writes the shading group names to the Alembic file by default, can the VRay proxy read this information rather than listing the shape names?

We have to check if Maya writes this information; in any case we don’t do anything about it - you will have to reassign the shaders manually. Of course, if this can be automated, it would be best, but I’m not quite sure what would be the best way to do it. We could add a button that reads the materials and attempts to find them in the Maya scene and automatically assigns them to the mesh material?

Best regards,  
Vlado

---

<div class="post-metadata">

**Author:** ![brobins](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/brobins/32/5913_2.png) [@brobins](https://forums.chaos.com/u/brobins)\
**Post date:** [January 25, 2016, 10:50am UTC](https://forums.chaos.com/t/alembic-as-proxy-shaders-assignments/56857/3 "2016-01-25T10:50:05Z")

</div>

It would make most sense (to me) to keep a consistent workflow between .vrmesh and .abc

Its great that a vray proxy can read either file format but its quite confusing having 2 different workflows, for controlling shader assignments specifically. If shading group information is written out with the .abc by default it would be most useful to read this in as you do with a .vrmesh file and populate the vrmeshMtl list with shader names rather than object names.

Many Thanks,

---

<div class="post-metadata">

**Author:** ![vlado](https://avatars.discourse-cdn.com/v4/letter/v/779978/32.png) [@vlado](https://forums.chaos.com/u/vlado)\
**Post date:** [January 25, 2016, 12:18pm UTC](https://forums.chaos.com/t/alembic-as-proxy-shaders-assignments/56857/4 "2016-01-25T12:18:39Z")

</div>

Ok, will look into it.

Best regards,  
Vlado

---

<div class="post-metadata">

**Author:** ![Morbid\_Angel](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/morbid_angel/32/21272_2.png) [@Morbid\_Angel](https://forums.chaos.com/u/Morbid_Angel)\
**Post date:** [January 25, 2016, 5:41pm UTC](https://forums.chaos.com/t/alembic-as-proxy-shaders-assignments/56857/5 "2016-01-25T17:41:30Z")

</div>

brobins, so when you export abc from maya, how do you import it back with materials or assignments? (if you don’t use vray proxy)

---

<div class="post-metadata">

**Author:** ![brobins](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/brobins/32/5913_2.png) [@brobins](https://forums.chaos.com/u/brobins)\
**Post date:** [January 25, 2016, 6:19pm UTC](https://forums.chaos.com/t/alembic-as-proxy-shaders-assignments/56857/6 "2016-01-25T18:19:00Z")

</div>

> [@NY Loft Space](https://forums.chaos.com/t/ny-loft-space/49780/3):
>
> brobins, so when you export abc from maya, how do you import it back with materials or assignments? (if you don’t use vray proxy)

I dont generally use alembic for rendering for the reasons mention above. I generally use .vrmesh for rendering and alembic for GPU Cache to give a better, faster viewport representation of the model. This requires me to export the model twice which isnt optimal, especially on projects with a large volume of assets.

---

<div class="post-metadata">

**Author:** ![ivaylo.ivanov](https://avatars.discourse-cdn.com/v4/letter/i/eb8c5e/32.png) [@ivaylo.ivanov](https://forums.chaos.com/u/ivaylo.ivanov)\
**Post date:** [January 26, 2016, 9:49am UTC](https://forums.chaos.com/t/alembic-as-proxy-shaders-assignments/56857/7 "2016-01-26T09:49:47Z")

</div>

Yep, we are trying to fix the proxy viewport performance for 3.3, so you don’t need to use gpuCache for this. Alembic seems to have a similar issue though - it has 2 exports - standard and for a gpu cache. They produce different results. AFAIK, the gpu cache one has some basic materials exported. XGen has yet another alembic export, which fully supports materials, but by using additional files - one to match objects with shaders, and another one to hold the shading network. VRay supports this, but Maya’s standard exporter can’t produce the extra files. So if the proxy preview is your major issue, it seems the easiest issue to fix.

---

<div class="post-metadata">

**Author:** ![brobins](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/brobins/32/5913_2.png) [@brobins](https://forums.chaos.com/u/brobins)\
**Post date:** [January 26, 2016, 12:44pm UTC](https://forums.chaos.com/t/alembic-as-proxy-shaders-assignments/56857/8 "2016-01-26T12:44:52Z")

</div>

Yeah, that’s my only issue with it really. If you can fix the proxy to display similar to a GPU Cache with the same speed advantages then you’re onto a winner.
