• SaveWorldPreferences() in Python

    5
    0 Votes
    5 Posts
    882 Views
    a_blockA
    Hi Ferdinand, thanks a lot! No ETA needed, I'm grateful it will be added eventually. Cheers, Andreas
  • How to Manually Build the Cache for a Vector Import Instance?

    3
    0 Votes
    3 Posts
    564 Views
    I
    works like a charm, thank you!
  • Handling Windows Paths with a Umlaut in Python - Ä.

    r21 python
    3
    0 Votes
    3 Posts
    1k Views
    FSSF
    Eh, this was the first approach i tried, it will map the decoded utf-8 to Windows codepage 1252. (Sorry about the wrong one in the code above). I tried to change the system setting to utf8 but it would not accpet that. Thanks for your help, Maxime
  • Implementing a watermark on render

    c++ windows r21
    6
    0 Votes
    6 Posts
    1k Views
    ferdinandF
    Hello @dunhou, Thank you for reaching out to us. Please read our Forum Guidelines regarding the scope of topics, your question does not seem to be a valid follow-up question to me, and therefore should be its own topic. I also struggle to see how this is an API question, as you seem to report an end-user problem which has nothing to do with one of our APIs. Please contact user support via the Support Center for such questions. Cheers, Ferdinand
  • How to Show Nodes API Nodes in the Node Editor?

    5
    1
    0 Votes
    5 Posts
    742 Views
    DunhouD
    @m_adam Great Help! Thanks a lot for your help, the code works pretty well. I can go further with my works .
  • How to Set Node Spcace use python?

    5
    0 Votes
    5 Posts
    822 Views
    M
    Just a note as mentioned in the documentation BeginTransaction must always be used with the "with" statement, otherwise it could cause Cinema 4D to freeze. Cheers, Maxime.
  • How to change polygon axis

    r21 c++
    5
    1
    0 Votes
    5 Posts
    1k Views
    N
    @ferdinand Thank you very much for your continuous help in the past two days. I just searched axis related content in cafe, and it is confirmed that my idea is wrong. You are a patient and good teacher. Thank you again, Ferdinand.
  • Making a PolygonObject-like object plugin

    python r23 windows
    3
    0 Votes
    3 Posts
    500 Views
    J
    First of all, thanks for your support. It is not possible, at least not without A LOT of work, to implement polygonal geometry that is driven by Attribute Manger parameters and can maintain vertex-by-vertex manipulations of users. You must reimplement all its vertex/edge/polygon interactions OBJECT_POLYGONOBJECT is sort of uncharted territory. That answers my question. My approach was trying if I could use the already implemented geometry interactions and add from that point. Since I found no example for OBJECT_POLYGONOBJECT, thought that could be it, but seems not. If you just want to some information being displayed for objects, I would recommend implementing a tag which does that. If you want to, you could hide that tag from the users view, and also write a plugin which automatically distributes that tag in a scene My plan B was along these lines, with a dialog to show the info. Thanks, Oscar
  • R21 and Python Version

    r21 python
    2
    0 Votes
    2 Posts
    595 Views
    ferdinandF
    Hey @brucek5, Thank you for reaching out to us. The Python interpreter shipped with Cinema 4D is not identical to CPython and it is not intended to be replaced by the user. Technically speaking you could try it, but this would be out of scope of support and will likely also fail. We cannot give instructions on how to do it, you would have to hack your Cinema 4D yourself. It also depends on how much you want to change the Python version. Given that you are on R21, i.e., Python 2.7, and likely want to jump to a Python 3.X version, the answer will change from "practically impossible" to "categorically impossible". Cheers, Ferdinand
  • Copy LayerShader to a new Material

    python
    11
    0 Votes
    11 Posts
    2k Views
    indexofrefractionI
    tx ferdinand, and yes intertwined threads .-)
  • Get Point selection tag center

    c++ r21
    7
    0 Votes
    7 Posts
    990 Views
    N
    @m_magalhaes Thank you, I think I understand
  • Export multiple GLB files via script

    2
    0 Votes
    2 Posts
    414 Views
    ManuelM
    Hi, We have an example on github to export to obj and how to define the parameters, you can find it here You need to retrieve the plugins with its plugin ID GLTFEXPORTER_PLUGIN_ID 1041129 There is no symbol attached for it. Then, you must send the message MSG_RETRIEVEPRIVATEDATA to define the option you want. For each parameter you will find its ID in the following file : \resource\modules\gltf\description\fgltfexporter.res You will find that the parameter you want to change is c4d.GLTFEXPORTER_FILEFORMAT and it should be set to c4d.GLTFEXPORTER_FILEFORMAT_GLB So just like in this line, you will write objExport[c4d.GLTFEXPORTER_FILEFORMAT] = c4d.GLTFEXPORTER_FILEFORMAT_GLB You should be able to clean the code from the obj example and adapt it to your needs. That will help for your thousands of exports. Cheers, Manuel
  • Auto fill selection tag to link

    c++ r21
    4
    1
    0 Votes
    4 Posts
    768 Views
    N
    @m_magalhaes thank you so much,you and your code is perfact
  • Node Materials & Python ?

    python
    3
    0 Votes
    3 Posts
    563 Views
    indexofrefractionI
    thanks ferdinand... something to study when this summer heat is over .-)
  • Matrix4

    c++ classic api
    6
    0 Votes
    6 Posts
    877 Views
    WickedPW
    Thanks @ferdinand, I've been trying to remove a matrix math library from my software, but having never been taught any of this before (code that is), I was fumbling around in the dark on how to re-assemble things. But I've managed to end up with a blend of C4D and my own functionality, which is fine. The image below probably won't mean much to you, but it tells me it's working correctly again. [image: 1655632350542-218e9cdd-fa5d-4f09-80b9-c2ddc191eb2a-image.png] We can probably mark as solved. WP.
  • Importing RSproxies using Python

    s26 python
    5
    2
    0 Votes
    5 Posts
    1k Views
    UMDU
    Oh I see.. The ExecutePasses was the key ! Thank you for your answers !
  • Touch input objects withot resetting its cache

    python
    6
    0 Votes
    6 Posts
    968 Views
    ferdinandF
    Hey @baca, as I said, the control object structure you want is not possible. I tried and wrote the necessary code when I answered here initially, and Cinema 4D will really start to freak out. You cannot have nested hierarchies of muted caches. If you really want to do this, then you must use the approach proposed by me. If you want to also hide the objects in renderings, then you will have to also set that parameter. If you poke around long enough, you might find a solution by muting the caches, but this is out of scope of support. As I said, I did already try when I wrote my first posting, maybe you have more luck. But as also stated in my first posting, you are poking here the sleeping bear called "classic API node dependencies". Cheers, Ferdinand
  • How to get a MoGraph Selection using a Python Effector...

    sdk
    1
    0 Votes
    1 Posts
    372 Views
    No one has replied
  • fbx export plugin critical error

    r21 python
    8
    0 Votes
    8 Posts
    1k Views
    K
    Hi there, I have a similar problem. But I use R25 version. If I write exporterID[c4d.FBXEXPORT_SDS] = True or exporterID[c4d.FBXEXPORT_SDS] = False I get error AttributeError: parameter set failed If I comment or remove this line, export works fine. Maybe I should create a new topic with this issue.
  • Getting Current Render Frame

    6
    0 Votes
    6 Posts
    1k Views
    M
    Sorry for the late reply In order to do that you will need to start a new thread, and you need to keep alive the thread as long as it execute, meaning you will need to store it in a global variable. Best way would be to reach octane directly as 3rd party are free to implement this as they want. Cheers, Maxime.