StRaToX Posted September 4, 2017 Share Posted September 4, 2017 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. Quote Link to comment Share on other sites More sharing options...
Skybar Posted September 4, 2017 Share Posted September 4, 2017 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. 1 Quote Link to comment Share on other sites More sharing options...
StRaToX Posted September 4, 2017 Author Share Posted September 4, 2017 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 1 Quote Link to comment Share on other sites More sharing options...
Skybar Posted September 4, 2017 Share Posted September 4, 2017 Actually no, sorry, you are right. It does match the Reference Field if the field already exists. Sorry for confusing you :). Not sure if it is possible to match a field from another object like that, but someone else might know. Quote Link to comment Share on other sites More sharing options...
Dam Posted September 4, 2017 Share Posted September 4, 2017 (edited) Hi Josh, have a look a this hip example, I prepared it for this post initially, But maybe can be helpful also for your case. feel free to send your hip file too so I can have look at it. Cheers - Dam Flip_TurbulenceSopScalField.hipnc Edited September 4, 2017 by Dam Quote Link to comment Share on other sites More sharing options...
StRaToX Posted September 6, 2017 Author Share Posted September 6, 2017 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 ? Quote Link to comment Share on other sites More sharing options...
Dam Posted September 7, 2017 Share Posted September 7, 2017 (edited) 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 September 7, 2017 by Dam Quote Link to comment Share on other sites More sharing options...
StRaToX Posted September 9, 2017 Author Share Posted September 9, 2017 Alright I get it now, thank you everyone. Regarding the merge node question I was thinking about when you want to perform actions in an order does the merge node provide that, as in nodes connected to it execute in order from the first to last Quote Link to comment Share on other sites More sharing options...
Dam Posted September 9, 2017 Share Posted September 9, 2017 (edited) For micro solvers the computation order it s from left to right, after the solver generally it depends to the merge relationship. Edited September 9, 2017 by Dam Quote Link to comment Share on other sites More sharing options...
scaduxx Posted February 26, 2020 Share Posted February 26, 2020 Could you help me understand how can I do something similar in a gasmatchfield that contains matrix ? I have 2 volume sources and I want it to affect only one of them Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.