if someone had an idea for me to automate this it would be great, and define default colors according to my groups of notes (these will be the same groups used by all my graphs).
Thanks in advance to whoever has an idea
I tried to create a note with your first code with and without quotes but I did not understand how to execute it and recover the values:confused:
i tried too but it’s the same.
otherwise I observe that when I open a note, and modify the colors, if I pass on the other notes then, the colors are kept but nothing is saved if I close and restart obsidian
You’ll need the Dataview plugin installed first, then just paste in the code into a normal note - not into the Graph query. You shouldn’t have the ```` quotes around it.
Perfect! So now just use that information along with the script from the Updating the groups section in the guide, and you can change them however and as often as you wish.
But for now, i tried to place the note with these code on my different group then execute… but no change ;
I was able to verify that the RGB codes are indeed linked to my default generated graphic, because this code changes when I change a color manually.
However I can’t yet apply it to groups of notes.
When i paste this code on a note witch already exist, then ctrl + E, i see the refresh on the right graph pane , but the colors doesn’t change.
In both screenshots you still have the graph window open.
At my end everything works fine and one difference is that I don’t have a graph window open. So that was the purpose of step 1, to remove that from the equation.
I haven’t managed to apply the color scheme yet, but, by going through the ‘filter’ function from the main graphic view, I manage to keep the color, so this remains a secondary solution.
I’m also looking to have links dependent on others like this:
Do you know if it’s possible?
I’am using my notes as groups, services and other and i need to show dependencies vector.