pixelpicnic Posted June 15, 2018 Share Posted June 15, 2018 Hello Hive Mind, Long time reader, first time poster.... I was wondering if anyone knows a pythonic way of creating a reference copy of a node? More or less the equivalent of hscript opcp -c. It's a little more complicated than a copy and iterate over parms, since certain parm types need different copy/reference methods. Thanks in advance! Quote Link to comment Share on other sites More sharing options...
toadstorm Posted June 15, 2018 Share Posted June 15, 2018 I believe hou.Node.copyItems(items, channel_reference_originals=True) is what you're looking for. This won't reference any nested operators in a subnetwork, though. 1 Quote Link to comment Share on other sites More sharing options...
pixelpicnic Posted June 16, 2018 Author Share Posted June 16, 2018 2 hours ago, toadstorm said: I believe hou.Node.copyItems(items, channel_reference_originals=True) is what you're looking for. This won't reference any nested operators in a subnetwork, though. That's the ticket! Cheers! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.