• Multiple unique render files from same file?

    programming download
    5
    0 Votes
    5 Posts
    2k Views
    G
    Ok, I ran into the issue of polling the BatchRender.IsRendering. I don't have the python skills to do multi-threading to check when a render is complete. I was able to hack in a time.sleep function but it is very problematic for longer renders and crashes a lot. Instead I went the route of Takes though Take are a bit cumbersome to setup but it is working nicely. I'll post the code here for anyone looking to do something similiar. I can just RenderAllTakes command and get each object rendered with its name using a $Take render token. def main(): doc = c4d.documents.GetActiveDocument() inEx = op[c4d.ID_USERDATA,4] # In/Exclude User Data for i in range(0 , op[c4d.ID_USERDATA,4].GetObjectCount()): #Iterate through each shot based on our shot slider in user data activeObj = inEx.ObjectFromIndex(doc, i) #deterimine which object is active if op[c4d.ID_USERDATA,1] == i: activeObj[c4d.ID_BASEOBJECT_VISIBILITY_EDITOR] = False #turn visibility On activeObj[c4d.ID_BASEOBJECT_VISIBILITY_RENDER] = False render_filename = inEx.ObjectFromIndex(doc, i).GetName() #Gets the name of the currently active object op[c4d.ID_USERDATA,5] = render_filename else: activeObj[c4d.ID_BASEOBJECT_VISIBILITY_EDITOR] = True #turn visibility Off activeObj[c4d.ID_BASEOBJECT_VISIBILITY_RENDER] = True c4d.EventAdd() ################ SEND ALL def BuildTakes(): #Sequencer() takedata = doc.GetTakeData() obj = doc.GetActiveObject() #print( Description.GetParameterI(op[c4d.ID_USERDATA,1], ar=None)) inEx = op[c4d.ID_USERDATA,4] # In/Exclude User Data for i in range(0,op[c4d.ID_USERDATA,4].GetObjectCount()): #Sequencer() take = takedata.AddTake(inEx.ObjectFromIndex(doc, i).GetName(), None, None) take.FindOrAddOverrideParam(takedata, obj , c4d.DescID(c4d.DescLevel(c4d.ID_USERDATA, c4d.DTYPE_SUBCONTAINER, 1),c4d.DescLevel(1)), i , backupValue=None, deleteAnim=False) take.FindOrAddOverrideParam(takedata, inEx.ObjectFromIndex(doc, i), c4d.ID_BASEOBJECT_VISIBILITY_EDITOR, False, backupValue=None, deleteAnim=False) take.FindOrAddOverrideParam(takedata, inEx.ObjectFromIndex(doc, i), c4d.ID_BASEOBJECT_VISIBILITY_RENDER, False, backupValue=None, deleteAnim=False) #op[c4d.ID_USERDATA,1] = 0 #Sequencer() #c4d.MSG_DESCRIPTION_CHECKUPDATE #Sequencer() #c4d.EventAdd() def ClearTakes(): tk = doc.GetTakeData() tk.ResetSystem()
  • Free Python Plugin: Quad Disc

    plugin-information download
    8
    1
    4 Votes
    8 Posts
    3k Views
    DunhouD
    I had PM you about that but I wonder if you see it @CJtheTiger, or you can get my e-mail address on my Github. Cheers~ DunHou
  • Spline Round Tool behave issue

    Moved python 2024
    6
    1
    0 Votes
    6 Posts
    2k Views
    ferdinandF
    Hey @baca, Just as an FYI, this bug has been fixed and it will be included in one of the upcoming releases of Cinema 4D, quite likely the next release. Cheers, Ferdinand
  • Hiring C++ Developer

    1
    0 Votes
    1 Posts
    643 Views
    No one has replied
  • Script that converts Redshift materials back to C4D standard ones

    21
    0 Votes
    21 Posts
    28k Views
    K
    Ah, ok. Thanks for the response. I get what you are saying and will try to further my own understanding of how to implement this script and scripting in general, and I appreciate you taking the time to clarify things. I am surprised that there isn't more of a demand for a more refined tool to revert RS materials. Do you know of any other approaches to achieving this? I realize this outside the realm of this forum an appreciate any input you might be able to provide.
  • What does "Puffy Unicorn Reset" command do in 2024.1.0?

    2
    1
    0 Votes
    2 Posts
    961 Views
    M
    Hi @kng_ito this is some internal development commands that slipped through the release candidate. They remove some very specific cache files so nothing armful, but nothing really useful for you as it's more some internal debugging tools. Thanks for letting us know. Cheers, Maxime.
  • How many C++ and Python devs do we have here?

    5
    7 Votes
    5 Posts
    2k Views
    Leo_SaramagoL
    I'm looking for a C++ developer. I wrote a prototype in Python that needs some love... It's meant to become a real plug-in. Yes, there's a budget. Hey, @a_block , how can I reach you? Anybody else interested? Please, reply to this, let's talk. Thanks for your time.
  • 0 Votes
    9 Posts
    3k Views
    S
    Hi Bjorn, I have a working version of this now which you can download from my site at https://microbion.co.uk/files/rounditr2024.zip It's PC-only at the moment and requires C4D R2024. Try this and see if it does what you need. There's some basic documentation included which I'll tidy up for the final version. There doesn't seem to be a DM facility here so we'd better take any further discussion to email. You can get hold of through the contact page on my site (link is in the PDF in the zip file). Do let me know what you think. Cheers, Steve
  • SplineIK Rotation jitter problem

    7
    2
    0 Votes
    7 Posts
    2k Views
    chuanzhenC
    @ferdinand Thanks
  • Notarizing a plugin for macOS

    2
    1 Votes
    2 Posts
    976 Views
    M
    Thanks for the detailed guide, and also a good reminder that the altool is going to be deprecated. We are going to update our documentation accordingly. Cheers, Maxime.
  • Old Coffee "vnorm" term to python

    3
    0 Votes
    3 Posts
    1k Views
    C
    @ferdinand Thank you! you can find it in the old coffee help "using matrices" tutorial section: [image: 1694524159445-88c1a768-9234-4fe1-b6eb-c93e4d2ebf6a-grafik.png] My own code is ridicoulusly simple: main() { ang = ( vnorm(vector1) * vnorm(vector2)) ; } Just looking for a python "vnorm"
  • Plugin ID page is down?

    4
    0 Votes
    4 Posts
    1k Views
    J
    Hi @ferdinand, Thank you for you quick response! It is working nicely right now. All my previous ID are untouched and I am able to generate a new one. Thank you so much for your dedication! Best, JX
  • Are there any official personnel from Megascans here ?

    2
    2
    1 Votes
    2 Posts
    791 Views
    M
    Hi @Dunhou, we can't disclose any information about our partner and I'm doubtful that Megascan developer are reading this forum but who know. Cheers, Maxime.
  • using c4d.threading with (python) thinking particles

    python
    7
    0 Votes
    7 Posts
    2k Views
    ferdinandF
    Hello @jenandesign, Thank you for reaching out to us, I appreciate sharing your customer journey with us. I cannot make any further statements on the ongoing development of Cinema 4D, but we are of course happy to hear that you see value and potential in Cinema 4D. I will make sure that your input does reach the simulation Team. Cheers, Ferdinand
  • Free plugin : Octane Light Manager

    6
    1
    3 Votes
    6 Posts
    2k Views
    DunhouD
    Redshift Manager Here, and Octane also had a huge update, please use my plugin manager version to check new furtures. [image: 1693752232080-49845e69-c2ef-4d79-a429-4c1433f5a773-image.png]
  • Free plugin: TexToMatO - Über Texture Importer

    1
    1
    4 Votes
    1 Posts
    2k Views
    No one has replied
  • Need help fixing export to GLTF script

    3
    0 Votes
    3 Posts
    1k Views
    i_mazlovI
    Hello @joel_motion, 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 Support for redshift materials on gltf export first appeared with the 2023.2 release. That version also included numerous gltf exporter stability improvements. Please note, that debugging the code is out of scope in this forum. You are very welcome to ask specific questions with well-defined scope. In general your code seems reasonable. The approach with cloning objects onto a new document is the one I would suggest anyways. However, one should be careful with the dependencies that objects in the subtree might loose during cloning. AliasTrans helps to overcome such side effects to some extent. Cheers, Ilia
  • Free plugin : HDR Link for Poly Haven

    1
    1
    1 Votes
    1 Posts
    2k Views
    No one has replied
  • Instance variables static or not?

    Moved c++ macos 2023
    3
    0 Votes
    3 Posts
    988 Views
    W
    Hi @ferdinand, Thank you for moving this topic to its correct category. Although I believe we agree on the C++ meaning of static members I really wasn't aware that the use of static plugin parameters and static plugin state could in practice be as problematic as you describe and will certainly heed your advice to no longer use static plugin state. Also, your point on field members and parallel execution of member functions is well taken. Thanks again!
  • Link to online docs

    3
    1
    1 Votes
    3 Posts
    1k Views
    WickedPW
    @ferdinand ah great, thanks. For others reading, may need a hard-refresh to get it to show. [image: 1689751972839-68055f1b-8472-4768-8b26-64b7edc1a9b5-image.png] Cheers, WP.