question

Sylvain Salame avatar image
Sylvain Salame asked ·

mtoa_constant to control attributes inside Standins

Hi,

I have a problem controlling asset using mtoa_constant within a StandIns except when it's on shaders. I want to be able to access light intensity or smooth iterations, for example, when I plug a aiUserdata in another node (except a shader) when I export to a StandIn, the aiUserdata node is not present inside the StandIn, even if in the source scene, the aiUserdata is properly controlling the destination node.

I found this on a previous answer this for controlling intensity on a StandIn but it doesn't work :

Plug into aiUserdataFloat defaultValue to your light intensity

And type any string in 'attrib name' you want.

Set the default value what you want.(drive light intensity value)

Export ass your mesh light.

Import ass to your main file.

Create extra attrib on your imported ass shape node

And control your intensity.

First, one difference than with a shader I need to plug the "default value" and not the "Out Value" compared when it's plugged into a shader.

Second, when I export the StandIn, there is no aiUserdata written in the file compared when aiUserdata is plugged into a shader, the aiUserdata information is inside it.

Then when I load the StandIn in a scene, after creating the extra attrib on the StandIn shape node with the correct name, the attribute doesn't control anything.

Am I missing something here? is it even possible to do that? For me, it would seem logical to be able to control the attribute on the StandIn shape if you have aiUserdata inside it, exactly like with a shader.

Any thoughts?

Thanks!

mtoaass
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.

Sylvain Salame avatar image
Sylvain Salame answered ·
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.

Stephen Blair avatar image
Stephen Blair answered ·

light intensity cannot be linked to a shader

2 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.

aiUserdata is not a shader, and it's possible to link the default value to the light intensity.

The issue is that aiUserdata is not written in the StandIn for some reasons...

0 Likes 0 · ·

aiuserdata is a shader

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.