I'm trying to hook up a scen with operators but can't get displacement to work.
This is the syntax I'm trying : disp_map = 'displacementShader'
have tried alot of diffrent stuff but cant get it to work 😞
Any ideas?
cheers
You need to use the name of the shader node that is exported to Arnold (eg what you see in an ASS file).
disp_map= "displacementShader1.displacement"
So fu... cool 🙂 Thanks. Im gonna do this with all my scens from now on. So much better way to work with cached files.........
Thanks Stephen.
I had success using operator to assign shaders but I can't make it work for the displacement.
When I use that syntax : disp_map="displacementShader1.displacement"
I got that error: // Error: [ass] line 1: /ring/ringShape.disp_map: unresolved reference to 'displacementShader1.displacement' //
Had this error before ?
thx
Still can't figure out what i'm doing wrong. I include this time a screen shot of the setup and a scene file.
It might be related to that: unresolved reference
Any clues what it can be?
thx
I hope with the next MToA update we get this Operators more featured in the Docs.
Some workflow tutorials would help here.
Hi @Marcus Jungerstam I know it's been a while since that post but do you have a simple scene example for a working scene? Or anybody else?
You need to enable Export All Shading Groups (Render Settings > System tab).
Otherwise the shaders are not exported, because they are not used by any object in the scene.
Oh wow I though I tried that. Work perfectly thx!
The confusing part for me was that you don't need a Shading Group when you only want to assign a surface shader. Displacement need one. cheers
Sure thing!
I put toghter a file I use as a preset when I set up my operators. I usally do the same thing like assigning a shader and displacement map to cached files so this works pretty good for that.
Make sure to click "export all shading groups" it wount work otherwise
This is how my scen looks like:
download link = https://www.dropbox.com/s/c1icht2kcffhrlp/operators.mb?dl=0