forbidden14 Posted March 8, 2023 Share Posted March 8, 2023 Hey all, python / HDA related question: I'm making an HDA where I'm creating a bunch of trace nodes linking to a bunch of rotoshapes in a COP network, which is all good and everything is linking correctly...however I want to initialize the COP tab on the trace node via a python when the node is created instead of the default File node option. Also, I've just been grabbing nodes and dragging them into the python windows to get things working, but down the line how would you make the paths underlined in yellow relative to the HDA? I've tried the ../ I've used before, but it's throwing me errors whenever I try to reference relatively. Thanks in advance! Quote Link to comment Share on other sites More sharing options...
PixelNinja Posted March 25, 2023 Share Posted March 25, 2023 To switch the tabs you would use: newt.parm('usecop1').set(1) For relative references you would want to use "./" rather than "../". The former will reference the node itself, allowing you to access its parms and internal nodes. The latter will reference the parent of the node instead. 1 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.