• 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
    1k Views
    N
    @m_magalhaes Thank you, I think I understand
  • Export multiple GLB files via script

    2
    0 Votes
    2 Posts
    418 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
    790 Views
    N
    @m_magalhaes thank you so much,you and your code is perfact
  • Node Materials & Python ?

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

    c++ classic api
    6
    0 Votes
    6 Posts
    881 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
    1k 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
    381 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.
  • Plugin causes Render Region to turn black

    c++ r25 r23 r21
    3
    0 Votes
    3 Posts
    713 Views
    Danchyg1337D
    Hello! Sorry for not providing any specific info about the problem, it was not really aything to provide in fact. Your last guess about document related stuff is absolutely correct. There is a piece of code responsible for handling a license which was indeed using documents. Thanks!
  • How to use GeUserArea.DrawCustomButton()

    python sdk s26
    5
    1
    0 Votes
    5 Posts
    732 Views
    K
    Hi @m_adam , It is unfortunate because I thought it would be useful if it were available, but I understand. Thank you for your prompt response!
  • How do i check if another Plugin is loaded in Python?

    r21 python
    2
    0 Votes
    2 Posts
    469 Views
    ferdinandF
    Hello @fss, Thank you for reaching out to us. I understand your general question, but some aspects are unclear to me. What plugin interfaces/hooks are involved (CommandData, ObjectData, ...)? Your posting somewhat implies that you want to rely inside PluginStart (which is not technically part of a plugin interface) on another plugin being loaded, is that true? If you are in PluginStart(), at which boot message (the ones emmited to PluginStart) are you trying to determine if some plugin X has been registered? But i logged those out and it always seemed to be called before the commandline arguments are processed. I am not quite sure what is meant with 'logged those out' here? The quick answer is to call c4d.plugins.FindPlugin to determine if a plugin is accessible, but depending on what you are trying to do, this might not the right way. Cheers, Ferdinand
  • How can I set a selection after I create a selection tag?

    python
    3
    0 Votes
    3 Posts
    575 Views
    ferdinandF
    Hello @LingZA, without any further questions or other postings, we will consider this topic as solved and flag it as such by Friday, 17/06/2022. Thank you for your understanding, Ferdinand
  • Instantiating AssetDatabaseStruct

    5
    0 Votes
    5 Posts
    775 Views
    ferdinandF
    Hello @clayton_krause, without any further questions or other postings, we will consider this topic as solved and flag it as such by Friday, 17/06/2022. Thank you for your understanding, Ferdinand
  • 0 Votes
    3 Posts
    637 Views
    ferdinandF
    Hello @cinamatic, without any further questions or other postings, we will consider this topic as solved and flag it as such by Friday, 17/06/2022. Thank you for your understanding, Ferdinand
  • Using Path Selection

    python r23 windows
    3
    1
    0 Votes
    3 Posts
    605 Views
    ferdinandF
    Hello @DGLopez, without any further questions or other postings, we will consider this topic as solved and flag it as such by Friday, 17/06/2022. Thank you for your understanding, Ferdinand
  • Why are there no Sketch and Toon shaders?

    windows python s26
    3
    0 Votes
    3 Posts
    529 Views
    ferdinandF
    Hello @blastframe, without any further questions or other postings, we will consider this topic as solved and flag it as such by Friday, 17/06/2022. Thank you for your understanding, Ferdinand
  • How to Set UserData Group fold/unfold

    python s26
    9
    0 Votes
    9 Posts
    1k Views
    ferdinandF
    Hello @chuanzhen, without any further questions or other postings, we will consider this topic as solved and flag it as such by Friday, 17/06/2022. Thank you for your understanding, Ferdinand