Korny Klown2
I'm not quite shure what you mean but it sounds a bit too much for what I want.
$OS is used to pass the string of an operators name to a parameter, in this case it means that the group name is the same as the nodes name. In HScript thats pretty handy since $OS is just 3 characters to type. I have my default scripting laguage set to Python and I don't wanna change this everytime to HScript when I wanna use $OS. So a short handy command/expression/function would be nice.
Ah, now I understand, sorry.
The reply I gave was oriented towards creating a python script and getting the group name.
What you want is the Python equivalent to $OS to write it in the parameter window.
What pezetko says works well, but it is indeed longer than $OS.
Two small tips (that you might already now)
-You can change the expression language just for one parameter by right-clicking and choosing “expression-Change language to Hscript”
-You can save a preset for any node. So what I would do is write this “hou.pwd().name()” or “$OS” on my node and save it as a preset so every time I create a group node I´m just one click away from it. You could even save it as the type default if you wanted to.
Hope it helps.