dom_campbell
Shadowjonny
what do you mean by trailing?
For the trailing ‘,’. I just mean that if you had one item in the tuple you needed a `,` at the end (trailing) to make it a tuple containing one string, leaving it out would make it just a string with bracket around it; `(“Poles”) == “Poles”` not `(“Poles”, )`. You have to values in the tuple so it will be fine.
Shadowjonny
That is there name
No “Poles” and “Rings” look like the labels to me which is what you should be using in `parmTuplesInFolder`. Most on the when accessing things you should be using the names, but not in this case; I dont know why but I am a n00b so maybe the reason is obvious to others.
No sure what will is up with your setup `parmTuplesInFolder()` works as fine for me.
Ask which version you are on? (I am new to Houdini so have only used version 18 and maybe there is a difference)
The version changes '#' characters to '_' when I apply so the screen shot you have could not be applied changes; and obviously you would need to apply the changes before anything would work. Maybe there is some issue with using `#` in the names.
Can you confirm is differently the correct node?
Can you confirm it's type ?
Where is this python code running from?
I would expect to have been used if it was inside the hda; hou.node("/obj/UtilityPole")
would only be the right thing to do in session code since it is a scene content path.
Can you access the parms okay? Does HDAnode.parm('RingPosition#_#x')
return a value okay? or HDAnode.parm('RingPosition___x')
if it was renamed on apply?
If the parm is returned are does it say the containing folders are?
HDAnode.parm('RingPosition#_#x').containingFolders()
or it the parm was renamed on apply HDAnode.parm('RingPosition___x').containingFolders()
Is `parmTuplesInFolder` working in general for you?
Does HDAnode.parmTuplesInFolder(())
return all the parms? (yes, when there is no values in the tuple it knows it is a tuple, one value is just the odd case)
Does HDAnode.parmTuplesInFolder(('Poles', ))
return all everything in the poles folder?
Sorry, if some of those are a bit obvious and they are a bit confusing. With Houdini a user could some could be an experienced artist but inexperienced programmer, or an experienced programmer but inexperienced artist; those groups don't speak the same language or make the same sort of mistakes.
so i tired all of those they work and they print out something only the ‘containingFolders()’ was empty. Also
HDAnode.parmTuplesInFolder(())
worked but
HDAnode.parmTuplesInFolder(('Poles', ))
didnt work weird. I dont know if i forgot to say im writing this in a Python SOP. If i do
HDAnode.parm("RingPosition_1_1").eval()
i get the eval so its reading the path right. =/