Hey guys!
I've been fooling around with TOPS over the last week and in doing so I've encountered an issue with the python script node. Due note that this is (almost) 100% due to my lack of experience with python as a coding language.
I am having an issue creating a reference to the current python script node running. When making a python node in SOP I am sued to being able to run hou.node('.') or hou.pwd() to get a reference to the current python script node and from there being able to get to the parent node or any other node in the node tree and their parameters. However if I run hou.node('.') or hou.pwd() all I get in TOPS is a simple ‘/’ when I print it instead of the expected path to the node.
I've noticed that in the python script node there is a built in variable ‘self’ but I have not been able to get that to give me any useful results or use it with any of the hou.Node.TOPNode specific commands in the documentation.
Is there something really obvious I am missing? I noticed that there was multiple python nodes, would a different one be better? All I am looking to do is execute a few lines of python after a cache is done running.
Thanks for the read!