question

Marcus Jungerstam avatar image
Marcus Jungerstam asked ·

Operators and displacement?

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

displacement
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Christoph Schaedl avatar image
Christoph Schaedl answered ·

I hope with the next MToA update we get this Operators more featured in the Docs.
Some workflow tutorials would help here.

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

olivier lr avatar image
olivier lr answered ·

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

3 comments Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Still can't figure out what i'm doing wrong. I include this time a screen shot of the setup and a scene file.

dispoperator.zip

example.jpg

It might be related to that: unresolved reference

Any clues what it can be?

thx

0 Likes 0 · ·
dispoperator.zip (11.1 KiB)
example.jpg (91.7 KiB)

@olivier lr

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.

1 Like 1 · ·
olivier lr avatar image olivier lr Stephen Blair ♦♦ ·

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

0 Likes 0 · ·
Stephen Blair avatar image
Stephen Blair answered ·

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"
Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Marcus Jungerstam avatar image
Marcus Jungerstam answered ·

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.

3 comments Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

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?

0 Likes 0 · ·

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:

operators.png

download link = https://www.dropbox.com/s/c1icht2kcffhrlp/operators.mb?dl=0

1 Like 1 · ·
operators.png (874.9 KiB)

Yes that was the main problem. Thx for sharing!

0 Likes 0 · ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Welcome to the Arnold Answers community.

This is the place for Arnold renderer users everywhere to ask and answer rendering questions, and share knowledge about using Arnold, Arnold plugins, workflows and developing tools with Arnold.

If you are a new user to Arnold Answers, please first check out our FAQ and User Guide for more information.

When posting questions, please be sure to select the appropriate Space for your Arnold plugin and include the plugin version you are using.

Please include images, scene and log files whenever possible as this helps the community answer your questions.

Instructions for generating full verbosity log files are available for MtoA, MaxtoA, C4DtoA, HtoA, KtoA, and Kick.

If you are looking for Arnold Documentation and Support please visit the Arnold Support site.

To try Arnold please visit the Arnold Trial page.

Bottom No panel present for this section.