Solved How can I change the path of a Redshift shader with Python?

Hi.
If I call documents.GetAllAssets() I can get the owner of the shader in question, and I can use a tuple of params to get the path. For example:

asset["owner"][c4d.REDSHIFT_SHADER_TEXTURESAMPLER_TEX0, c4d.REDSHIFT_FILE_PATH])

Result: C:\a\b\c.jpg

However, I need to replace that path with a different path for
cloud rendering. The following doesn't work:

asset["owner"][c4d.REDSHIFT_SHADER_TEXTURESAMPLER_TEX0, c4d.REDSHIFT_FILE_PATH]) = "../other/path

A very similar technique works just fine for a Redshift proxy path.

Can anyone tell me how to write a new path in a Redshift texture programmatically?

Many thanks!

mmm - seems to be working now. I'll have to figure out what I did differently. Sorry to bother you!

mmm - seems to be working now. I'll have to figure out what I did differently. Sorry to bother you!

Hello @conductor,

Thank you for reaching out to us. I am glad that you could solve your problem yourself. Please do not hesitate to ask further questions you might have.

Cheers,
Ferdinand

MAXON SDK Specialist
developers.maxon.net