Absolute reference copy?

   8321   7   2
User Avatar
Member
41 posts
Joined: Jan. 2007
Offline
Hey all -

I can't seem to find anything in the documentation about reference copies. Basically, I want to make a reference copy with absolute paths instead of relative ones. Does anyone know how I would go about doing this? Or where I could modify the script to accomplish this? Thanks.

-Mike
User Avatar
Member
2624 posts
Joined: Aug. 2006
Offline
If this is for an asset you should look at using opfullpath()

Rob
Gone fishing
User Avatar
Member
373 posts
Joined: March 2009
Offline
http://www.houdinitoolbox.com/houdini.php?asset=15 [houdinitoolbox.com] There are some good code snippets in here that will work for what you need… specifically the linkParmsTo function should work.
Ian Farnsworth
User Avatar
Member
41 posts
Joined: Jan. 2007
Offline
Ooh that's an awesome resource! That was pretty much exactly what I was looking for.

Now, do you know how I could add that script to the context menu, like reference copy? Or could I only add it to the toolbar?
User Avatar
Member
373 posts
Joined: March 2009
Offline
I've never done it before, but I think it lives in $HFS/houdini/OPmenu you'll need to use hscript function to call python I suppose. Hopefully somebody else can elaborate.
Ian Farnsworth
User Avatar
Member
86 posts
Joined: Jan. 2009
Offline
I've been doing a similar thing and just stumbled upon this topic. Check out this thread on odforce:

http://forums.odforce.net/index.php?/topic/5430-adding-scripts-to-rmb-click-menu/page__hl__+opmenu%20+file#entry36547 [forums.odforce.net]

it helped me a lot.

Cheers,

Tony
User Avatar
Member
11 posts
Joined: March 2012
Offline
Solitude
http://www.houdinitoolbox.com/houdini.php?asset=15 [www.houdinitoolbox.com] There are some good code snippets in here that will work for what you need… specifically the linkParmsTo function should work.

Hello. This link doesn't lead to linkParmTo script anymore. Is there a more recent source or fix to this available somewhere?
User Avatar
Member
1904 posts
Joined: Nov. 2006
Online
Oh man, all my crappy old code…

Yeah, there's a newer and better way to do this now available on the linked site:

Python file with code which does it [github.com]

OPmenu.xml file which lets you add said functionality to node RMB menu. [github.com]
Graham Thompson, Technical Artist @ Rockstar Games
  • Quick Links