Keeping original folder structure while renaming files

Has anyone found a good way in Advanced Renamer to rename files across many subfolders while keeping the folder structure untouched and still being able to include the parent folder name as part of the new filename. I saw some general advice about organising large file collections on https://pincocasinos.com/ which mentions using consistent naming patterns and it made me wonder if someone here could share a practical preset or method that works well for this kind of task.