I'm looking forward to the next version update.
Thank you for your response.
Best posts made by Easan
Latest posts made by Easan
Thank you very much for your help, your code has been extremely useful to me.
I'm trying to script in Cinema 4D and I want to access the path of an Asset that's currently selected in the Asset Browser. I'm familiar with retrieving the path of an Asset, but I'm not quite sure how to identify or get the Asset that's actively selected by the user.
Could anyone guide me on this, or share a code snippet that achieves this?
Thanks for any help!
@i_mazlov Thank you very much for your help!
I'm a beginner with Python in C4D and I've been having an issue with a Python tag for a while now and could use some assistance.
I can successfully control material parameters using user data with the following code:
import c4d def main(): obj = op.GetObject() mat = obj[c4d.ID_USERDATA,1] strength = obj[c4d.ID_USERDATA,2] if mat is None or not isinstance(strength, float): print("error") return mat[c4d.MATERIAL_COLOR_BRIGHTNESS] = strength mat.Message(c4d.MSG_UPDATE)
However, I'm struggling to control Redshift material parameters in the same way. For example, I need to control the [c4d.REDSHIFT_SHADER_MATERIAL_DIFFUSE_WEIGHT] parameter.
What changes do I need to make in order to get this working properly?
Any help would be appreciated, thank you!