Jump to content

Gas Match Field (with field from different objects)


StRaToX

Recommended Posts

Hi I'm new to Houdini and recently I've been getting into DOPs.

I have a question

I've been trying different things out in dops to see how they work,

been playing around with the "Gas Match Field" node and found that it works quite nicely when both fields you are supplying the node with are from the same object

Like on picture 1, both the "myField" field and the "heat" field are part of the same object and the node works just fine

But what I can't figure out is how to make the node work when I'm supplying it with fields from different objects. On picture 2 "myField" is part of an empty object and the "heat" field is part of the smoke object, I tried to reference them 

via their paths like on the picture 2 but unfortunately it doesn't seem to work.

 

Does anyone have any insight into why this may be, 

I can see how referencing field from different objects can come in handy not just for this scenario.

Picture_1.png

Picture_2.png

Link to comment
Share on other sites

Gas Match Field DOP creates a new field. "Field" is the name of the new field, and "Reference Field" is the field it should take it's dimensions from. So you dont have to create the new field beforehand because that is what it already does. Keep in mind that this only creates a new, empty field. You have to separately copy/add data to it afterwards.

  • Like 1
Link to comment
Share on other sites

Thanks for replying, really appreciate it

So your saying that even thought the description for the field parameter says :
"The name of a field that one wants to create. If it doesn’t exist, one will be created. This can be a space separated list of fields to create many fields in one DOP." , instead it only just makes field and doesn't modify them.

Ok then. But in that case how would I go about matching an existing field to another
And also I really have to know, on the second picture am I even referencing these field the right way, I mean the path to them and all that 

  • Like 1
Link to comment
Share on other sites

Why is it that after you used the gas match field node which creates the non-existent "mask" field there's a wrangle ode which does the same ?

Also do merge nodes run their child nodes in order from left to right ? 

This next question is unrelated but how do I copy or transfer a field or data from one object to another ?

Link to comment
Share on other sites

There is a wrangle "f@mask=@density" because the gas match field creates an ampity field with same size and res of density field and name "mask", but since this field it's empty yet the wrangle fills the field with the density data, my bad I should have named the wrangle fillMask. Not sure to understand the other two, do you have a specific example or simple hip? Cheers

Edited by Dam
Link to comment
Share on other sites

  • 2 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...