Community
Arnold for 3ds Max
Rendering with Arnold in 3ds Max using the MaxtoA plug-in.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Creating my custom AOV in Maya using an Houdini created attribute

13 REPLIES 13
Reply
Message 1 of 14
square-zero-one
1129 Views, 13 Replies

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


6544-1585859491683.png

6545-1585859626846.png6546-1585859678702.png

6547-1585859758638.png

Square-zero-one.com
https://www.facebook.com/squarezeroone
Tags (1)
Labels (1)
  • aov
13 REPLIES 13
Message 2 of 14
Anonymous
in reply to: square-zero-one
Message 3 of 14

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

Square-zero-one.com
https://www.facebook.com/squarezeroone
Message 4 of 14

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



// Stephen Blair
// Arnold Renderer Support
Message 5 of 14

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

Square-zero-one.com
https://www.facebook.com/squarezeroone
Message 6 of 14

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:

6561-userdatafloat.png


So...is the user data actually there?

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



// Stephen Blair
// Arnold Renderer Support
Message 7 of 14
Anonymous
in reply to: square-zero-one

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
6550-pref-maya.jpg


Message 8 of 14
square-zero-one
in reply to: Anonymous

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

Square-zero-one.com
https://www.facebook.com/squarezeroone
Message 9 of 14

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

6573-1585931908477.png


6574-1585931960448.png


Square-zero-one.com
https://www.facebook.com/squarezeroone
Message 10 of 14
Anonymous
in reply to: square-zero-one

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

Message 11 of 14

Cd worked for me.

I loaded the abc with an aiStandin in Maya



// Stephen Blair
// Arnold Renderer Support
Message 12 of 14

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 !

Square-zero-one.com
https://www.facebook.com/squarezeroone
Message 13 of 14

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

Square-zero-one.com
https://www.facebook.com/squarezeroone
Message 14 of 14
Anonymous
in reply to: square-zero-one

Glad you were able to solve your problem!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report