Jump to content

Create Absolute Reference Copy Of A Node [SOLVED]


Recommended Posts

Hello, when I right click a node and choose Actions / create reference copy I get what I want, but as soon as I copy those nodes into another subnetwork or another geo node further back in the object context those reference links no longer work. Everything is referencing the original node, which is no longer in the same geo network.

Is there a way to create an absolute reference copy of a node I can move to another geo network and still have the paths reference back to the correct place?

I feel like I may get a python answer to this question, however I am a coding novice. I don't yet know how to call a python script inside Houdini, or where to keep the scripts etc.

Edited by GlennimusPrime
Link to comment
Share on other sites

of course you can do this, only the way you doing it is not gonna work in this case.

if you middle click referenced parameters you will see it is a relative reference. like ch("../box1/sizex") - this is referencing a box1 node existing in the same network location as the referencing node. if you move the node into a different network, this referencing expression doesn't update and its relative path is not valid any more. 

the trick is to either use absolute references that contain the full path to a references parameter, or you have to place a node first, and then do the relative referencing. This can be done either by drag n drop from one node to another, or from right click menu. to make this process really fast, have two parameter dialogs open and just drag n drop between them.

and obviously, you need to read the manual. this is like one of the most 101 things in houdini ;)  https://www.sidefx.com/docs/houdini/network/copying.html

cheers.

 

Edited by davpe
Link to comment
Share on other sites

Hi davpe, thanks for your reply.

I understand the reason behind this not working and am familiar with how the relative reference copy / paste commands work, but doing this for every single attribute on a node seems tedious.

As there is a way via the right click action menu to create a reference copy of a node, it would be great if there were a way to create an absolute reference copy of the node too.

Link to comment
Share on other sites

I found this post where @graham has built some tools which adds a right click menu that allows you to create an absolute reference copy of a node, but I am having troubling getting the script to work.
https://www.sidefx.com/forum/topic/28841/?page=1#post-297277

I've followed the Houdini.env install instructions bu am met with a never ending stream of errors on the Houdini console when opening Houdini.

I've also tried the packages install method without any luck (as I'm a scripting novice).

Link to comment
Share on other sites

  • 3 months later...

@GlennimusPrime Your problem is real, and it bugs everyone who wants to use Houdini in a meaningful way. Luckily qLib has a shelf tool called "Ref Copyt qL" that is an enhanced version of the original reference copy. It adds an extra parameter to the copied node, that is the reference node what the expressions use. It can be absolute or relative, but what is even better is that you can change it later. You should install qLib with the "package method" and then add the qLib shelf to one of your shelf sets.

  • Like 3
Link to comment
Share on other sites

On 3/8/2021 at 11:50 AM, beeemtee said:

@GlennimusPrime Your problem is real, and it bugs everyone who wants to use Houdini in a meaningful way. Luckily qLib has a shelf tool called "Ref Copyt qL" that is an enhanced version of the original reference copy. It adds an extra parameter to the copied node, that is the reference node what the expressions use. It can be absolute or relative, but what is even better is that you can change it later. You should install qLib with the "package method" and then add the qLib shelf to one of your shelf sets.

Thanks for sharing!

Edited by Krion
Link to comment
Share on other sites

  • 8 months 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...