papsphilip Posted December 3, 2023 Share Posted December 3, 2023 # check if the parameter is inside a specific folder. #this code doesnt tmp = ['info','Image Settings','Color Settings'] for folder in tmp: if folder in parm.containingFolders(): print("excluded : " + str(parm.name())) continue # this code works if 'Export Presets' in parm.containingFolders(): continue cant really figure why the list method doesnt work. Something i am missing? Quote Link to comment Share on other sites More sharing options...
papsphilip Posted December 4, 2023 Author Share Posted December 4, 2023 found another solution that works. for parm in parms: skip_parameter = False # Check if the parameter is inside a specific folder. This is in case I want the parms of the HDA itself for folder in exclude_folders: containing_folders = parm.containingFolders() if folder in containing_folders: # Exclude parameter skip_parameter = True if skip_parameter: continue Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.