• Best way to detect an object has been deleted?

    Cinema 4D SDK python 2023
    5
    0 Votes
    5 Posts
    1k 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
    2k 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
    732 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
    664 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
  • Change alembic generator state/type

    Cinema 4D SDK python
    3
    0 Votes
    3 Posts
    949 Views
    J
    Hello @vik-lc , 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
  • xRef file path is broken if created via python

    Cinema 4D SDK python 2023
    3
    0 Votes
    3 Posts
    809 Views
    B
    Sorry for not making my post as clear as it should have been, next time I will do better The good thing is, I fixed it! The problem was how I loaded my initial master project. # instead of using c4d.documents.LoadDocument() # i replaced it with c4d.documents.LoadFile() ... and now my xRef works just fine! Thank you again!
  • c4d.EventAdd() is not working

    Moved Bugs python 2023
    9
    0 Votes
    9 Posts
    3k Views
    ferdinandF
    Hey everyone, The issue has been fixed and verified in an internal build. It will be shipped with one of the builds of the next major update (i.e., it will not make it into 2023.x.y anymore). Beta testers can already make use of the change in the most recent beta build. Cheers, Ferdinand
  • How to get a port data type?

    Moved Bugs sdk python windows 2023
    6
    1
    0 Votes
    6 Posts
    2k Views
    J
    Hello @Dunhou , you are correct, the issue is not fixed yet. As Ferdinand mentioned in the beginning he has flagged it as "to_fix", so it will be fixed as soon as possible. Thanks and Cheers Maxon SDK Group
  • CRITICAL: Stop when calling SetWorldPluginData

    Cinema 4D SDK python 2023
    5
    0 Votes
    5 Posts
    1k Views
    a_blockA
    Thanks for the offer. much appreciated. But your explanations were good and plenty as usual. I think, I know exactly what is going on.
  • Setting DESC_DEFAULT for a Parameter has no Effect

    Cinema 4D SDK r23 python
    3
    0 Votes
    3 Posts
    931 Views
    J
    Hello @mikeudin , 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
  • 0 Votes
    7 Posts
    1k Views
    B
    @ferdinand Gotcha. Thanks. Will close this thread now.
  • Undo for commanddata plugin principle

    Cinema 4D SDK python
    6
    0 Votes
    6 Posts
    1k Views
    J
    Hello @datamilch , 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
  • 0 Votes
    11 Posts
    2k Views
    DunhouD
    Hi @m_adam , I have ask what are main functions in redshift do in redshift forum, but get no reply for week. and the help(redshift) also give me an ambiguous result. But anyway, I have something here, I will update it and publish when I have free times.
  • 0 Votes
    4 Posts
    1k Views
    T
    Hi @ferdinand, your links really helped me a lot, and I managed to write a script that starts a render and sends the rendered image to a web service. Can the SDK grab the live preview image from the redshift IPR? I assume not looking at the documentation: https://developers.maxon.net/docs/py/2023_2/search.html?q=redshift&check_keywords=yes&area=default