Hi, I have to get the last character of the node's name into group parameter of blast node. In this case, the name of blast node is blast1, so I need the last character 1, and put it in into group parameter.
nodeName = hou.node(".")
last_char = nodeName[-1]
return(last_char)
And I get error
Error: Unable to evaluate expression (
Traceback (most recent call last):
File "<stdin>", line 3, in expression
TypeError: 'SopNode' object is not subscriptable
(/obj/geo1/blast1/group)).