@m_adam Thank you for providing an alternative method to set parameters.
Latest posts made by Easan
-
RE: How to Set Void Type Attributes in GraphNode?
-
RE: How to Set Void Type Attributes in GraphNode?
@ferdinand OK, I understand what you mean. Thanks for your response.
-
How to Set Void Type Attributes in GraphNode?
Hi,
I'm currently working with GraphNode in my project and have successfully used methods likenode.SetValue(maxon.NODE.BASE.NAME, maxon.String("some name"))
to set parameters.
However, I'm struggling with attributes that are of void type. Specifically, I need to set maxon.NODE.BASE.SOLOPORT. Could someone please guide me on how to properly set void type attributes like this?
Any help or examples would be greatly appreciated!
-
RE: GetDefaultValue Not Working in C4D 2024
@m_adam
I'm looking forward to the next version update.
Thank you for your response. -
GetDefaultValue Not Working in C4D 2024
The GetDefaultValue of GraphNode doesn't seem to retrieve values from the node in 2024 the same way it did in 2023.
How can I correctly obtain these values in the 2024 version?Thanks in advance!
-
RE: How to obtain the path of a selected Asset in Asset Browser
@ferdinand
Thank you very much for your help, your code has been extremely useful to me.
Cheers! -
How to obtain the path of a selected Asset in Asset Browser
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!
-
RE: Accessing Redshift Material Parameters with User Data
@i_mazlov Thank you very much for your help!
-
Accessing Redshift Material Parameters with User Data
Hello,
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!