Community
Arnold for Houdini Forum
Rendering with Arnold in Houdini and Solaris using the HtoA plug-in.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Example using Operator Graph or User Options to create user data

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
elmer.chris
245 Views, 2 Replies

Example using Operator Graph or User Options to create user data

Hi,

I'm trying to add a custom user_data_float to a .ass file using htoa. It looks like I should use an operator graph or user options to do this, but the how is not clear.

Could someone point me to a simple example using htoa to do this?

Thanks!


Env info:
Houdini 18.5.563
HtoA 5.6.1.0
Arnold 6.2.1.0


This is the base .ass file.

procedural
{
 name /obj/box_ass/procedural
 matrix
 1 0 0 0
 0 1 0 0
 0 0 1 0
 0 0 0 1
 motion_end 0
 id 7549499
 filename "/home/artist/Desktop/detailAttrOverride.ass"
 declare frame constant FLOAT
 frame 1
 declare fps constant FLOAT
 fps 60
 declare _obj_path constant STRING
 _obj_path "/obj/box_ass"
}
And I'd like to add my user_data_float test to the end like this:
procedural
{
 name /obj/box_ass/procedural
 matrix
 1 0 0 0
 0 1 0 0
 0 0 1 0
 0 0 0 1
 motion_end 0
 id 7549499
 filename "/home/artist/Desktop/detailAttrOverride.ass"
 declare frame constant FLOAT
 frame 1
 declare fps constant FLOAT
 fps 60
 declare _obj_path constant STRING
 _obj_path "/obj/box_ass"

 declare test constant FLOAT
 test 5
}
Tags (2)
Labels (2)
2 REPLIES 2
Message 2 of 3
Stephen.Blair
in reply to: elmer.chris

You can use a set_parameter operator to add user data to the procedural node (at render time). But that won't insert it into the ass file on disk.

All you need is an assignment expression like float test = 5.0

1631284684541.png



// Stephen Blair
// Arnold Renderer Support
Message 3 of 3
elmer.chris
in reply to: Stephen.Blair

Thanks Stephen, this works great.

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

Post to forums  

Autodesk Design & Make Report