Python Script Issue -RGB Primaries - Vray Node Material Creator

Hey,
I built a little python script to create V-Ray Node Materials based of found files inside of a folder automatically a while ago.
But I still run into the issue that I can not change the RGB Primaries for Glossiness/Roughness maps etc.

BITMAPBUFFER_RGB_PRIMARIES_RAW = int(0)
idVrayBitmapRGBPrimaries: maxon.Id = maxon.Id("com.chaos.vray_node.texbitmap.rgb_primaries")
BitmapRGB: maxon.GraphNode = node.GetInputs().FindChild(str(idVrayBitmapRGBPrimaries)) 
BitmapRGB.SetDefaultValue(]BITMAPBUFFER_RGB_PRIMARIES_RAW)

I did contact deyan-hadzhiev on this matter in Decembre 2023 under a different account and he told me:

OK, so we need to disable that RGB primaries observer logic on our side (based on a new preference option)

It is a long time and i wanted to know if there is any update or workaround to this problem - scince it still does not work how i expect it to.

Greetings,
Marc

Hi @marc_mayrhrmann1
There’s a global option that disableds this behaviour in our preferences which you can un-set(V-Ray->Materials->Set RGB Primaries Automatically). There’s also the hidden ‘imported_primaries’ boolean parameter in the bitmap node. "com.chaos.vray_node.texbitmap.imported_primaries"
If you set it to true(perhaps before even changing the primaries your node should not be affected by our code.

Thank your very much for that info bozhidar_ivanov.
Now it Works like a charm!