[b]opcopy[/b] and [b]oppaste[/b] are not session dependent

   2868   2   1
User Avatar
Member
702 posts
Joined: March 2009
Offline
Not sure how many people still use this command, but I just noticed that opcopy from one session propagates to whatever future houdini sessions, until you do another opcopy.

That's a bit limiting if I want to execute a script to automate oppaste in several concurrent sessions, but pasting different nodes within each session.

Cheers
Toronto - ON
My Houdini playground [renderfarm.tumblr.com]
“As technology advances, the rendering time remains constant.”
User Avatar
Member
1926 posts
Joined: Nov. 2006
Offline
The same happens when you do Ctrl + C and Ctrl + V. When you make a copy Houdini stores that copy in .cpio files in the temp directory. This allows you to to copy/paste between sessions easily.

If you can do it in HOM you can use hou.copyNodesTo() to copy a list of nodes without the clipboard being involved. There is also hou.copyNodesToClipboard() which will copy them as if you hit Ctrl + C. Doesn't look like there is a version of the former in hscript though.
Graham Thompson, Technical Artist @ Rockstar Games
User Avatar
Member
702 posts
Joined: March 2009
Offline
Yes, but since clipboard content doesn't affect oppaste and vice and versa, I just assumed it was contained to each session… It would have been the easy solution to my problem though

Thanks!

PS: Just realized the forum doesn't deal with styling in the thread titles… my bad!
Toronto - ON
My Houdini playground [renderfarm.tumblr.com]
“As technology advances, the rendering time remains constant.”
  • Quick Links