However, if the parameter is inside a multiparm block, the result is an empty string.
Here's how I've set it up:
Type Properties > Create Multiparm Folder (give it a name like mpFolder) > Create a Button in that folder
Go to the Scripts tab, Create a Python Module and paste the following:
def Func(kwargs): parm = kwargs["parm"] print parm.containingFolders() print hou.Parm.containingFolders(parm)
Go back to the Button you created, callback script: kwargs.hm().Func(kwargs)
I'd expect clicking the button would return something like ('mpFolder'), since that's the folder that the button resides in, but it just gives () instead.
Is this a bug or am I doing it wrong?