attributes from different channels

   2091   3   1
User Avatar
Member
9 posts
Joined: March 2016
Offline
Hi!


when I have two attributes coming from different channel and I want to connect them in a Point Wrangler, why does the Point Wrangler does not get the attributes from the second channel automatically?

I uploaded a picture to show, what I exactly mean.

In my case: I created an attribute in the Point Wrangler Node “set Vorticity” and in the node "merging the channels I want to use it without using the command point(.., …,… )

Thanks for your help !
Edited by mosberlin - April 3, 2017 10:20:28

Attachments:
houdiniChannels.png (31.2 KB)

User Avatar
Member
806 posts
Joined: Oct. 2016
Offline
Moin,

use “pointattrib(1,…)” to retrieve the attributes from your second input.

Marc
---
Out of here. Being called a dick after having supported Houdini users for years is over my paygrade.
I will work for money, but NOT for "you have to provide people with free products" Indie-artists.
Good bye.
https://www.marc-albrecht.de [www.marc-albrecht.de]
User Avatar
Member
8599 posts
Joined: July 2007
Offline
what do you mean automatically?
if you want to get attrib of matching point (by @ptnum or some attrib like @id) of other inputs
you can use type@opinput1_attribname to get the attribute of desired type from second (or any) input

like if your vorticity attrib is float length of vorticity
f@vorticity += f@opinput1_vorticity; // to add vortocity attrib of first and second input together
f@vorticity = max(f@vorticity, f@opinput1_vorticity); // to get maximum value of vortocity attrib
etc…
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
9 posts
Joined: March 2016
Offline
this was exactly I was looking for !

Thank you very much!
  • Quick Links