• access sound attributes using python API

    Cinema 4D SDK r20 python
    7
    0 Votes
    7 Posts
    2k Views
    M
    Hey @mrittman, i cant find the id names in documentation but i think CID_SOUND_START would be the timecode of when the audio starts (notice you are assigning a BaseTime object to it) CID_SOUND_NAME which i'm using is the audio file path. My application is taking the audio file path and the image sequence output (as defined by the render output settings) and combining them via a subprocess using ffmpeg. If there was a way i could do it straight through c4d id prefer that! Mainly cos ffmpeg is a mission! especially when you need to shift/delay audio and what not.
  • Define your own icons for mouse cursor

    Cinema 4D SDK r20 python
    5
    0 Votes
    5 Posts
    942 Views
    P
    Ok, something to think about and to consider.
  • Porting plugin to R20, disable style guide?

    Cinema 4D SDK
    4
    0 Votes
    4 Posts
    1k Views
    F
    Thanks Sebastian, I will try that! /Filip
  • 0 Votes
    7 Posts
    3k Views
    A
    Hi Riccardo, I think the issue is solved because there is no any issue. Some not good methods of software distribution just confused us. Btw, what benefits different parameters of SetPluginPriority() give to us? For example the xdll has several plugins like materials, shader, tags and renderer. Even some icons with plugin ids. What priority is better to use in this case? I see https://developers.maxon.net/docs/cpp/2023_2/page_manual_module_functions.html For example, what is C4DPL_INIT_PRIORITY_ADVANCEDRENDER: Does it give higher thread priority during some PV rendering task? Or does it just load the plugin before other renderers and give the chance to lock system resources before others?
  • 0 Votes
    6 Posts
    2k Views
    P
    Yes it is! Thank you very much!
  • Python Tag Priority Problem

    Cinema 4D SDK r20 python
    7
    0 Votes
    7 Posts
    1k Views
    B
    Works as expected. Thank you @m_adam for getting back to me. Have a great day ahead!
  • DrawLine2D on top of everything else

    Cinema 4D SDK r20 python
    6
    0 Votes
    6 Posts
    1k Views
    P
    Thanks. Pim
  • Precise float parameters in UI

    Cinema 4D SDK c++ r20 sdk
    4
    0 Votes
    4 Posts
    958 Views
    rsodreR
    Shouldn't STEP be used to set this precision? Or is there a limit for STEP?
  • STEP/STP FILE IMPORT PYTHON DOCUMENTATION

    Cinema 4D SDK r20 python
    5
    0 Votes
    5 Posts
    4k Views
    T
    @mp5gosu @m_adam I'll test out these options and see how it works out. Thanks for the information guys, I appreciate it!
  • 0 Votes
    5 Posts
    901 Views
    fwilleke80F
    It builds, and the source processor does not complain. Thank you!
  • Shader-Material Linking

    Cinema 4D SDK c++ r20 sdk classic api
    2
    0 Votes
    2 Posts
    449 Views
    M
    Hi @Ogers, unfortunately, there is no direct way to do so. The only working solution is to retrieves the host of the shader (using BaseList2D.GetMain) Then iterates the description of this element and all its children to see where the shader is used. Cheers, Maxime.
  • TreeView: How to insert dragobject as new item

    Cinema 4D SDK r20 python
    2
    0 Votes
    2 Posts
    495 Views
    mikeudinM
    Solved. There is TREEVIEW_OUTSIDE_DROP option.
  • SpecialEventAdd and structures / containers

    Cinema 4D SDK r20 python
    2
    0 Votes
    2 Posts
    448 Views
    M
    Hi @pim, In Python, SpecialEventAdd can only pass integer value, so the sender part can store the data into the document BaseContainer send the SpecialEventAdd/ Process this event read back the data from the active document BaseContainer. You can find valuable information on this topic https://developers.maxon.net/forum/topic/8219/10712_pluginmessage-and-pycobject-solved/5. Cheers, Maxime.
  • Send message to tooldata

    Cinema 4D SDK r20 python
    4
    0 Votes
    4 Posts
    1k Views
    P
    @C4DS said in Send message to tooldata: PrepareData Your first answer works great! Thank you.
  • Drag&Drop in Editor window

    Cinema 4D SDK r20 python
    3
    0 Votes
    3 Posts
    562 Views
    P
    Yes - dragging session only occurs in a 2D space - I thought so. Thanks.
  • Transform mouse coordinates to c4d coordinates

    Cinema 4D SDK r20 python
    5
    0 Votes
    5 Posts
    1k Views
    P
    Thanks for the answer. I just started with a command plugin. New requirements emerged and yes, perhaps I now change over to a tool plugin.
  • Compute the Area of an Irregular Polygon?

    Moved General Talk r20 python
    6
    0 Votes
    6 Posts
    2k Views
    r_giganteR
    Hi Bentraje, thanks for following up and sorry for coming late here. I've checked your geometry and the issue is not with the algorithm, but in both cases with the geometries you're using to compute the area who don't shown vertexes being properly "ordered". The algorithm I've briefly presented requires the vertexes to be ordered as if you're visiting them by walking on the outer edge of your n-gon or polygon in CCW or CW. It is then mandatory to generate an ordered list of vertexes before passing the data to the function to get the correct result. [image: 1553532189426-62d2c929-154a-4c85-b558-af1536d3153d-image.png] In order to come out with such an ordered list I warmly recommend you to visit the following old-threads: Get all ngons PolygonObject.GetPolygonTranslationMap() Get outer edges of each Ngon Best, Riccardo
  • 0 Votes
    4 Posts
    902 Views
    a_blockA
    Hi, I'm glad you found something working for you. I just want to mention, this way of using the deform cache directly will only work for very specific setups, for arbitrary object configurations you will most likely need to iterate through the cache. So, I think, it's worth to give those manuals another read. Also Maxime has posted some snippets in Getting a polygonal version of an animated mesh, which might be useful for you. Cheers, Andreas
  • Team Render Client and plugins

    Cinema 4D SDK r20
    2
    0 Votes
    2 Posts
    688 Views
    C4DSC
    What the customer failed to mention was that the Team Render Client he used is on the same physical machine as his main Cinema 4D. Since both share the same plugins folder, the plugins were obviously installed manually for the main Cinema 4D, and thus also available for the local Team Render Client. Case closed.