• ToolData.MouseInput() how to get right mouse click?

    Cinema 4D SDK python
    3
    0 Votes
    3 Posts
    820 Views
    J
    @i_mazlov Hi, thanks for letting me know that. cheers~
  • 0 Votes
    4 Posts
    1k Views
    J
    Hello @ThomasB , without further questions or postings, we will consider this topic as solved by Friday, the 11th of august 2023 and flag it accordingly. Thank you for your understanding, Maxon SDK Group
  • New Native Redshift camera via Python

    Cinema 4D SDK python
    3
    0 Votes
    3 Posts
    666 Views
    M
    Thank you. I got it working thanks to your hints.
  • CommandData Plugin DrawHUD

    Cinema 4D SDK s26 python
    3
    0 Votes
    3 Posts
    584 Views
    J
    Hello @gheyret , without further questions or postings, we will consider this topic as solved by Friday, the 11th of august 2023 and flag it accordingly. Thank you for your understanding, Maxon SDK Group
  • TranslateDescID with FieldsList

    Moved Bugs python r23 2023
    7
    0 Votes
    7 Posts
    2k Views
    ferdinandF
    Hey @mikeudin, just as an FYI, one of our engineers pointed out that Description.CheckDescID is the likely culprit for the problem and that this method should be avoided when possible due to its resource hungry nature. Instead, you would just manually define the parameter ID you mean, e.g., c4d.DescID(c4d.ID_TAGFIELDS). The problem with this is of course that this statement has been made disjunct from the dynamic parameters example because I stripped that aspect away in my minimized code. The original code example says: # Fills DescLever type and creator completeId = desc.CheckDescID(descId, None) return True, completeId, tag So, they seem to be only after filling in the data type and creator ID and not resolving multi-level IDs. Which you could also do manually when you know the parameters you want to wrap, e.g.,: descId: c4d.DescID = c4d.DescID(c4d.DescLevel(c4d.ID_TAGFIELDS, c4d.CUSTOMDATATYPE_FIELDLIST, c4d.MAXON_CREATOR_ID)) return True, descId, tag Cheers, Ferdinand
  • How to get the Interface language of c4d

    Cinema 4D SDK python 2023
    3
    1
    0 Votes
    3 Posts
    625 Views
    chuanzhenC
    @HerrMay Thanks!
  • Apply material to individual faces of a polygon

    Cinema 4D SDK python sdk
    8
    0 Votes
    8 Posts
    3k Views
    ferdinandF
    Hey @zauhar, I do not think so that I have told you that, at least I hope so, because that what you say there is not quite correct A vertex map or a vertex color tag can be rendered. When you use the standard renderer, you will have to use the Vertex Map shader, and when you use Redshift, you will need the Vertex Attribute node (just drag and drop the tag in both cases in the respective reference fields of the shaders). Below is an example for the Redshift case: [image: 1686937459914-screenshot-2023-06-16-at-19.41.37.png] Other renderers support Cinema 4D vertex colors too, but you will have to ask their support how that works Vertex Map Shader Vertex Attribute Node Cheers, Ferdinand
  • Multilingual - Plugin not working

    Cinema 4D SDK python
    4
    3
    0 Votes
    4 Posts
    915 Views
    J
    Hi Ferdinand! Perfect! We got it, thank you so much for the quick reply.
  • How to add custom menu to take manager

    Cinema 4D SDK
    3
    0 Votes
    3 Posts
    753 Views
    H
    Hi @i_mazlov, thank you for your reply. Yes, I thought as much. Too bad the take manager menu is not publicy exposed. And while I understand that Maxon as well as the community are not big fans of every plugin messing around with menu insertions, it still is a pitty. One can e.g. insert plugins into the menu of the material manager as done so by "CV-Swim". IMHO it should pose no problem when done carefully with UX in mind while doing so. Especially when one "only" appends entries to a menu. Nethertheless thank you for confirmation. Cheers, Sebastian
  • Selections in python

    Cinema 4D SDK python
    3
    0 Votes
    3 Posts
    804 Views
    J
    Hello @SemyonShapoval without further questions or postings, we will consider this topic as solved by Friday, the 11th of august 2023 and flag it accordingly. Thank you for your understanding, Maxon SDK Group
  • Best way to detect an object has been deleted?

    Cinema 4D SDK python 2023
    5
    0 Votes
    5 Posts
    2k Views
    P
    Thanks again for the great explanation. I guess I will go for a different workflow then.
  • add/remove/modify FieldList with python?

    Cinema 4D SDK
    5
    0 Votes
    5 Posts
    2k Views
    J
    Hello @jenandesign , without further questions or postings, we will consider this topic as solved by Friday, the 11th of august 2023 and flag it accordingly. Thank you for your understanding, Maxon SDK Group
  • access the layers in the shader layer

    Cinema 4D SDK python
    10
    0 Votes
    10 Posts
    3k Views
    JH23J
    Hi @i_mazlov , This solves my problem, for now I don't think I have another question, and I could consider my problem solved, thanks. cheers, James H.
  • 0 Votes
    3 Posts
    1k Views
    T
    Yes, thank you so much. This works perfectly. And thanks a million for the in depth explanation.
  • Traversing a layer shader with python

    Cinema 4D SDK python 2023
    5
    0 Votes
    5 Posts
    2k Views
    P
    @ferdinand : The GetAllAssetsNew is a far more elegant solution for the problem I am trying to solve and I've rewritten the code so that it works now. We use Corona render and Redshift so it's a bonus that this works with pretty much all materials. Thank you very much for the help, I will put your information about the layer shader in my database for future reference as I'm sure it will become helpful in another project! Kind regards, Joep
  • Insert my own command in main render Tab

    Cinema 4D SDK python 2023
    7
    0 Votes
    7 Posts
    2k Views
    P
    I really do appreciate all your effort and I will take your warning seriously and create my own menu Tab. Thanks again. Regards, Pim
  • Setting texture path to a RS Domelight with python

    Cinema 4D SDK r25 python
    2
    0 Votes
    2 Posts
    1k Views
    ferdinandF
    Hello @Ryan_Territory, Welcome to the Plugin Café forum and the Cinema 4D development community, it is great to have you with us! Getting Started Before creating your next postings, we would recommend making yourself accustomed with our Forum and Support Guidelines, as they line out details about the Maxon SDK Group support procedures. Of special importance are: Support Procedures: Scope of Support: Lines out the things we will do and what we will not do. Support Procedures: Confidential Data: Most questions should be accompanied by code but code cannot always be shared publicly. This section explains how to share code confidentially with Maxon. Forum Structure and Features: Lines out how the forum works. Structure of a Question: Lines out how to ask a good technical question. It is not mandatory to follow this exactly, but you should follow the idea of keeping things short and mentioning your primary question in a clear manner. About your First Question This exact question of yours has been asked before here for C++. Find a Python variant of the code below. For the technical details, I would recommend reading the older thread. Cheers, Ferdinand Result: [image: 1685984571549-557e9ddd-793a-4d07-aa6e-5ffd7ad05687-image.png] Code: import c4d # Define #Orslight, only must be done in pre 2023.0 API versions. c4d.Orslight: int = 1036751 def main(): doc = c4d.documents.GetActiveDocument() # Create Light light = c4d.BaseObject(c4d.Orslight) # Set the attributes light[c4d.REDSHIFT_LIGHT_TYPE] = c4d.REDSHIFT_LIGHT_TYPE_DOME # Define the texture parameter ID. texturePathId: c4d.DescID = c4d.DescID( # 1st DescLevel for the outer unexposed datatype of "Texture". c4d.DescLevel( c4d.REDSHIFT_LIGHT_DOME_TEX0, # The parameter ID (12000) for "Texture" 1036765, # The datatype ID for for "Texture", this type is not exposed, # we must use the raw ID. c4d.Orslight # The creator ID, Orslight in this case. ), # 2nd DescLevel for the inner exposed datatype of "Texture.Path". c4d.DescLevel( c4d.REDSHIFT_FILE_PATH, # The sub-channel parameter ID (1000) for "Texture.Path" c4d.DTYPE_STRING, # The data type ID of this component, string in this case. 0 # The creator ID, I just went with undefined here. )) light[texturePathId] = "asset:///file_c622e9ad3ea0e159" # Insert the light into the scene doc.InsertObject(light) c4d.EventAdd() if __name__=='__main__': main()
  • Move objects in the hierarchy

    Cinema 4D SDK python
    2
    1
    0 Votes
    2 Posts
    776 Views
    KantroninK
    I found the solution on https://plugincafe.maxon.net/ It was enough in the for loop to add the following line of code: for object in list_object: if object != object_root: object.InsertUnder(object_root) c4d.EventAdd()
  • 0 Votes
    3 Posts
    1k Views
    J
    Hello @jenandesign , without further questions or postings, we will consider this topic as solved by Friday, the 11th of august 2023 and flag it accordingly. Thank you for your understanding, Maxon SDK Group
  • Drive smooth rotation

    Cinema 4D SDK
    3
    0 Votes
    3 Posts
    719 Views
    J
    Hello @PMenich , without further questions or postings, we will consider this topic as solved by Friday, the 11th of august 2023 and flag it accordingly. Thank you for your understanding, Maxon SDK Group