Jump to content

export contraint network from DOP Network and active attribute


Juraj

Recommended Posts

Hi,

I would like to separate simulation into smaller simulations.

I need to use simulated constraint network from one simulation in another. (bring constraint network back to sop level) And active attribute as well.

Can it be done with dopimport node?

 

Thanks

Link to comment
Share on other sites

So I've managed to import constraint network with Object merge node with this Object parameter: /obj/geo/dopnet_sim:Relationships/constraintnetwork1/constraintnetwork/Geometry

as described here: http://www.sidefx.com/docs/houdini11.1/dynamics/io#id419749 and here: http://forums.odforce.net/topic/10928-hair-system/?p=70324

 

But this constraint geo is not following rbd pieces. I would like to export what is shown when Show Guide Geometry in Constraint Network is enabled.

  • Like 1
Link to comment
Share on other sites

  • 3 weeks later...

So I've managed to import constraint network with Object merge node with this Object parameter: /obj/geo/dopnet_sim:Relationships/constraintnetwork1/constraintnetwork/Geometry

as described here: http://www.sidefx.com/docs/houdini11.1/dynamics/io#id419749 and here: http://forums.odforce.net/topic/10928-hair-system/?p=70324

 

But this constraint geo is not following rbd pieces. I would like to export what is shown when Show Guide Geometry in Constraint Network is enabled.

Have you tried

 

/obj/geo/dopnet_sim:Relationships/constraintnetwork1/constraintnetwork

 

It should get the guide geo which follows the rbd pieces

  • Thanks 1
Link to comment
Share on other sites

Have you tried

 

/obj/geo/dopnet_sim:Relationships/constraintnetwork1/constraintnetwork

 

It should get the guide geo which follows the rbd pieces

 

It works with Object Merge node. But I cannot get it working with Dop Import node.

Any suggestions how to bring that data with Dop Import?

Link to comment
Share on other sites

  • 4 years later...
  • 8 months later...

You have to do it manually. Plug the constraints into attribute wrangle and simulated pieces into the second input. Then use this expression:

int pt = findattribval(1,"point","name",s@name);
if(pt>=0)v@P = point(1,"P",pt);

 

Edited by rayman
Link to comment
Share on other sites

On 23.11.2019 at 11:36 AM, xxyxxy said:

Sweet!  That is closer than I was before, thank you so much.  It doesn't seem to work when constraints break though -- for example I'm doing chains with hard constraints and breaking them mid-simulation.  How would I take the topology change into account with your solution?

Look at constraints' dop data with name "Visualization"  for this

constraints_vis.hipnc

const.gif.9c51a3d109ad4dca235fec186f1b4992.gif

  • Like 2
Link to comment
Share on other sites

4 hours ago, xxyxxy said:

Nice!  Thanks!  Is this also possible with fluid visualizations, for example the "Visualization" data underneath vel in Pyro?

Yes

vel_vis.hipnc

 

vel.gif.d1b09dc65ad7ea9bdff227b0f4c7bdc0.gif

4 hours ago, xxyxxy said:

 I don't get an error in my object merge but I also don't have anything visible.

Are constraints guides invisible? Check if the "Show Guide Geometry" parameter of constraint network dop turn on

Edited by vicvvsh
Link to comment
Share on other sites

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...