question

Johnny Grilo avatar image
Johnny Grilo asked ·

Creating my custom AOV in Maya using an Houdini created attribute

I've setup an object space pref property in houdini and cached out my objects.

I would like to create an AOV in maya to read this property.

How to setup it up?

I've tried the following but couldn't make it work.


Thank you

Johnny


aov
1585859491683.png (58.1 KiB)
1585859626846.png (26.0 KiB)
1585859678702.png (10.3 KiB)
1585859758638.png (8.0 KiB)
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.

Johnny Grilo avatar image
Johnny Grilo answered ·

And even better, if I drop the built in Pref Aov, it just loads it correctly without any wiring !!!

Thank you both for all the help

1 comment 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.

Glad you were able to solve your problem!

0 Likes 0 · ·
Johnny Grilo avatar image
Johnny Grilo answered ·

Im now trying to load just a Cd property out of houdini into a normal shader not even into an AOV, I can't seen to get anything.

https://docs.arnoldrenderer.com/display/A5AFHUG/User+Data

Is there any basic workflow Im missing?

Im pretty sure my cache has the attribute as I can see them in Houdini after unpacking...


Thank you




1585931908477.png (316.5 KiB)
1585931960448.png (59.5 KiB)
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.

You can read any attributes from Houdini, if you import the alembic file via Cache /GPU cache=> Import.

1 Like 1 · ·

Cd worked for me.

I loaded the abc with an aiStandin in Maya

1 Like 1 · ·
Johnny Grilo avatar image Johnny Grilo Stephen Blair ♦♦ ·

Yeap that was the trick!!!!!

I was just importing the alembic, not gpu cache or StandIn

It all working for me! Thank you so much Stephen and Rachid !

0 Likes 0 · ·
rachid Hadj Abderrahmane avatar image
rachid Hadj Abderrahmane answered ·

Here how I do it, simply connect aiStateVector (Shading Point in World-Space: P ) or Shading Point in Object-Space: Po) to aiWriteVector, then force the connection by manually connecting the out Color to custom AOV Shader




pref-maya.jpg (401.9 KiB)
1 comment 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.

I've tried it now and this work, but it's the native arnold attributes I would like to get my own attributes read, anyway this is a great tip , Thank you

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

I do wonder about using the the same parameter name Pref that Arnold uses. Can you try with a different name?

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.

Maybe Im doing something wrong? What is the way to load geometry attributes into an AOV? I changed the name and still got black ( changed but AOV name and Attribute ) .


Are this steps right?

  1. Create custom AOV
  2. Choose its DATA type
  3. On the AOV attributes , set Custom AOV, Shader to aiWriteFloat
  4. Set its input as aiUserDataFloat
  5. Render it

Keep getting black, not sure if Im setting it up correctly

Thank you

0 Likes 0 · ·

You don't actually need the aiWriteFloat, you could connect the user data shader directly. But there's no harm in doing it that way.

Your setup sounds correct. It should work like that:


So...is the user data actually there?

I would export an ASS file (with Expand Procedurals enabled) and check

0 Likes 0 · ·
userdatafloat.png (144.3 KiB)
Johnny Grilo avatar image
Johnny Grilo answered ·

Hi @rachid Hadj Abderrahmane

Thank you for the link.

I had a look at it before, but I want to have it coming from Houdini and also to use any other property, not just Pref.

What I would like to know how to properly read a property that it's in the mesh and display it using an AOV

Thank you

Johnny

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.

rachid Hadj Abderrahmane avatar image
rachid Hadj Abderrahmane 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.

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.