question

Pav Iv avatar image
Pav Iv asked

Operators setParameter override texture, node texture(file) How, possibly?

Hi.

How to override texture, node texture(file) using setParameter.

I try base_color.filename = 'white_mask.tx'( I try full path) and same name node base_color.filename = 'whitemask_tex'

Not working.

textureoperatorreplace texture
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.

Stephen Blair avatar image
Stephen Blair answered

filename is a parameter of an image node, so you would have to select an image node, and then set the filename parameter.

Or match a standard_surface node, and then set base_color

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.

Pav Iv avatar image
Pav Iv answered

1561116033772-image.png

Thank you.

Is it possible to replace a node with a texture in base_color.
What I mean.
See image.
There is a shader with which in the basecolor is connected a blendColors1, I want to replace it with a filenode( white.tx ).


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.

Pav Iv avatar image
Pav Iv answered

I write select in setParameter:

Selection: *obj_opacityAI

Assigment: base_color = 'white_tx.outColor'

Shading color changing to black, but its wrong result

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.

Stephen Blair avatar image
Stephen Blair answered

Sorry, I forgot that an operator cannot link a shader to an rgb parameter like base_color.

You can set the shader or disp_map parameters on an object, because those are not RGB parameters

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.

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.