Jump to content
Juraj

export contraint network from DOP Network and active attribute

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

Share this post


Link to post
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

Share this post


Link to post
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.

Have you tried

 

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

 

It should get the guide geo which follows the rbd pieces

  • Thanks 1

Share this post


Link to post
Share on other sites

Thanks :) it works.

Do you know by any chance how to export attributes from dop network? For example an active attribute.

Share this post


Link to post
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?

Share this post


Link to post
Share on other sites

Hi guys,

I'm having the exact same problem except the sop path you described does not export the simed constraint network. If anyone has any help I would be so grateful!! 

ExportConstraintNetwork.hipnc

Edited by jgaspari
I placed the file in the middle of my sentence

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
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 1

Share this post


Link to post
Share on other sites

Nice!  Thanks!  Is this also possible with fluid visualizations, for example the "Visualization" data underneath vel in Pyro?  I don't get an error in my object merge but I also don't have anything visible.

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Chicken dinner!  Was curious specifically if it were possible with Object Merge but that is good to know!

Edited by xxyxxy

Share this post


Link to post
Share on other sites
../../AutoDopNetwork:pyro/vel/Visualization

Write this string in an object merge sop and you get the same.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×