Search - User list
Full Version: Absolute reference copy?
Root » Houdini Lounge » Absolute reference copy?
tk421storm
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
circusmonkey
If this is for an asset you should look at using opfullpath()

Rob
Solitude
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.
tk421storm
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?
Solitude
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.
tony_a
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
Pawel_Grzelak
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?
graham
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]
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB