SOLVED Set Asset Paths in python

Hi
How can i set asset paths programatically in r20? It doesnt seem possible to set asset paths with environment variables so i need to figure out a way to do this with a python script on start up.
Any help appreciated.

Bonsak

That was easy 🙂
Paths[c4d.PREF_TEXPATHS] = 'D:/path/number/one\nC:/path/number/two'

Even better!
c4d.SetGlobalTexturePaths([['D:/path/number/one',True],['D:/path/number/two',True]])
I just love it when im all alone in here answering myself 🙂

Hi Bonsak,

I'm glad you found the solution yourself.

One reminder:
Please try to make use of tags, when posting, to help us keeping this place tidy. For this thread I already added some.

Cheers,
Andreas

Cool. Will do.