The data from Set Relationships is obviously in the RM database. You can see the data for one person at a time when you highlight the person. But you cannot search the relationship data from RM, so that you cannot do color coding by relationship data from within RM.
I’m on Version 2.0 of my color coding script. The version 1.0 of my color coding script was based on RM’s relationship data. But RM11 added new feature where the Set Relationship data would include “spouse of” relationships, such as “spouse of second cousin three times removed”. That sounds great in theory. However, the new feature was implemented in such a way that someone who actually is a relative might be displayed as “spouse of” a relative if that person had both roles. To me, this is either a bad design or an implementation bug.
As a result, I rewrote my color coding script so that it does not rely on RM’s own relationship data. All I have to do is to give my script the person (or persons, if I want to color code my wife’s relatives) who is the base person and the script takes it from there.
I do keep tweaking my color coding. For example, I started out with myself and all my relatives as red. I have tweaked it that so that all my relatives are red except that myself and my direct ancestors and descendants are mauve. The distinction between “relative” and “direct ancestor or descendant” can seem a little picky, but it helps me when I’m coming down from a very distant ancestor towards the present to remember which sibling is my ancestor. And frequently, more than one of the siblings is my ancestor due to cousin marriages downstream from the more distant past.
My boundaries include all descendants of all ancestors, plus all spouses and parents of spouses. For example, if my third cousin twice removed was Joe Smith, I want to be able to say that Joe married Mary Jones, daughter of Sam Jones and Sarah Anderson - that sort of thing, My boundaries also include spouses of spouses. For example, if my mythical Mary Smith was married another time I would like to be able to show her other husband in her timeline.
If you are on your game, you would surely say that another husband of Mary Jones would not show up any any narrative reports for any of my family members anyway, and by default you would be correct. However, I actually share each Marriage fact with each spouse. That surely sounds completely crazy, but here’s how it works. A Marriage fact is a couple fact rather than an individual fact. As such, a Marriage fact does not show up in the timeline for either spouse in narrative reports.Rather, there is a different timeline for the couple as a whole where the couple facts show up in narrative reports. So by sharing the Marriage fact, it creates an individual role for each spouse that shows up in each spouse’s individual timeline. So the marriage of my mythical Mary Jones to her other husband does show up in Mary’s individual timeline in narrative reports, even though she is just a spouse of a relative rather than being a relative herself.
Discussions of SQLite scripts should take place at https://sqlitetoolsforrootsmagic.com/ This is a user site, not supported or endorsed by the RM folks.