Hi Manuel,
Thank you very much.
Your script works perfectly in my environment.
Only one modification I made was
if "color" in portPath:
to
if "color" in str(portPath):
Thank you.
Hi Manuel,
Thank you very much.
Your script works perfectly in my environment.
Only one modification I made was
if "color" in portPath:
to
if "color" in str(portPath):
Thank you.
How to get animation tracks of Redshift material using python in Cinema 4D 2023? (Ultimately, I want to set keyframes for the material's Diffuse Color and animate it.)
Here is what I have tried.
I manually added keyframes to the color parameter of RS materials, such as RS Material, RS Standard, and RS C4D Shader, and executed the followin script to get the animation tracks.
The script returns nothing but the name of materials and no tracks. (Of course, the animation information can be seen in the dope sheet.)
for mat in doc.GetMaterials():
print(f"material:{mat.GetName()}")
for track in mat.GetCTracks():
print(f"->track:{track.GetName()}")
My environment is Windows 10, Cinema 4D 2023.1.3, Redshift 3.5.13.
Thanks in advance.