• When can I display a dialog at startup?

    c++ r20
    6
    0 Votes
    6 Posts
    2k Views
    kbarK
    Thanks Andreas. I will try Rick's trick again today. When I looked into it yesterday it didn't seem to work, but now I am wondering if perhaps it was visual studio locking the folders, and not actually C4D, since I was debugging at the time. I just tested renaming files manually (without running it through VS) and it was possible. I think Ricks dialog was done in Python, so he wouldn't have hit this VS issue. Fingers crossed it all works today.
  • Null characters in txt file (ascii - utf?)

    c++ windows r20
    8
    1
    0 Votes
    8 Posts
    4k Views
    P
    Thanks very much. (There is so much information to be read!). -Pim
  • Setting Quicktime Options

    python r19
    6
    0 Votes
    6 Posts
    3k Views
    M
    Hi @dmp, sadly as you already figurate out datarate want a BytesValue, which is not yet implemented in the maxon API (as it's been said, currently the python maxon API is still on progress and they are some flaws or missings class like this one, which will be fixed in futures release). And I'm afraid there is no workaround for it except switching to C++. With that said. For all other parameters, maxon API also introduces some new types like maxon.Int (which point to maxon.Int64 if available or maxon.Int32). According your issue with custom samplerate and audio kilobitrate, only few values are accepted. MAXON_ATTRIBUTE(Int, AUDIO_SAMPLERATE, "net.maxon.mediasession.mf.export.audio.samplerate", RESOURCE_DEFINE(ENUM_32000, 32000) RESOURCE_DEFINE(ENUM_44100, 44100) RESOURCE_DEFINE(ENUM_48000, 48000)); MAXON_ATTRIBUTE(Int, AUDIO_KILOBITRATE, "net.maxon.mediasession.mf.export.audio.kilobitrate", RESOURCE_DEFINE(ENUM_96, 96) RESOURCE_DEFINE(ENUM_112, 112) RESOURCE_DEFINE(ENUM_128, 128) RESOURCE_DEFINE(ENUM_160, 160) RESOURCE_DEFINE(ENUM_192, 192) RESOURCE_DEFINE(ENUM_224, 224) RESOURCE_DEFINE(ENUM_256, 256) RESOURCE_DEFINE(ENUM_320, 320)); If you have any question left, please let me know. Cheers, Maxime.
  • Volume Builder does not return object

    Moved python r20
    10
    0 Votes
    10 Posts
    3k Views
    M
    Hi @Swinn are you sure in your script you define in line 19/20 settings[c4d.VOLUMETOMESHSETTINGS_ISO] = -5.51 settings[c4d.VOLUMETOMESHSETTINGS_ADAPTIVE] = 0.0 With the same value, you got in your volume mesher object? The voxel range threshold can't be directly passed as an argument, but you can expand this parameter in the volume mesher and then you get the Use Absolute Value (ISO) check box, which let you choose an ISO value. Cheers, Maxime.
  • TreeViews with GeListHead and a checkbox column can lock up C4D

    c++
    3
    1 Votes
    3 Posts
    1k Views
    kbarK
    There is no question here. Just a bug report and a warning/info to other users if they get C4D locking up when using a treeview.
  • Failed to Connection on TeamRender

    c++ r19 sdk
    2
    0 Votes
    2 Posts
    876 Views
    r_giganteR
    Hi zhhm156, this post will be answered here. For the future, please avoid double posting. Best, Riccardo
  • Adding a Watch for Maxon variables in VC C++

    4
    0 Votes
    4 Posts
    1k Views
    P
    Thank you.
  • Priority confusion

    Moved python r19
    8
    0 Votes
    8 Posts
    3k Views
    chuanzhenC
    For viewport delay: i rewrote Skin Deformer ,Add a Aim Object to Check DeformCacheDirty To achieve my purpose(keep viweport realtime Refresh),yes ,it work. I have been updating the post, hoping that I can understand what the problem is on the right path, instead of exploring the working mechanism of Cinema 4D in other ways. Although I don't get the official answer, this will not dispel my enthusiasm for exploration the answer. (English is not very good, I hope to understand what I express)
  • Cloned Surface Deformer data

    c++ r19 r20
    3
    0 Votes
    3 Posts
    1k Views
    rsodreR
    @s_bach sorry, forgot about the tags. I'm using C++ SDK on R19/R20. I try calling ExecutePasses(), thanks.
  • Cannot update values of BaseContainer of VideoPost

    python r19
    5
    0 Votes
    5 Posts
    2k Views
    S
    Hello, I'm not really sure I understand what you are doing. Are you operating in a command line version of Cinema? Or is you code reacting to some command line arguments? Are you operating on the currently active BaseDocument? As I said, I don't have Indigo Renderer so I can't test this specific scenario. But when you "change" the renderer, you also have to "create" that renderer video post when operating in a new document. So it is not enough just to change the RDATA_RENDERENGINE parameter. This example shows how to set and create the "Hardware" renderer: renderData = doc.GetActiveRenderData() if renderData is None: return # set Hardware as active renderer bc = renderData.GetDataInstance() bc[c4d.RDATA_RENDERENGINE] = c4d.RDATA_RENDERENGINE_PREVIEWHARDWARE # add Hardware post effect # in Python a BaseList2D object must be created videoPost = c4d.BaseList2D(c4d.RDATA_RENDERENGINE_PREVIEWHARDWARE) renderData.InsertVideoPost(videoPost) c4d.EventAdd() You find general information on RenderData also in the C++ documentation: RenderData Manual. best wishes, Sebastian
  • maxon::Loggers::PythonConsole

    c++ windows r20 sdk
    4
    0 Votes
    4 Posts
    1k Views
    P
    Great, thank you.
  • Problem with DeleteObj() and maxon::PointerArray

    c++ macos sdk
    3
    0 Votes
    3 Posts
    1k Views
    codysorgenfreyC
    Ahhhh thanks! I couldn't find an Array Manual in the R18 documentation. I was going like this: maxon::PointerArray<MyCustomClass> myPointerArr = NewObj(maxon::PointerArray<MyCustomClass>); DoStuffWithArray(myPointerArr); DeleteObj(myPointerArr); It seems my problem was with the PointerArray taking ownership of my pointers, then deallocating them before I was done with them. Since it doesn't seem that R18 has maxon::UniqueRef objects I decided to go with a maxon::BaseArray<MyCustomClass*> instead. Thanks again for your help Sebastian!
  • Reading console output - possible?

    r20 c++ python
    11
    0 Votes
    11 Posts
    3k Views
    P
    I already guessed so. Thanks, I think we can close this post. -Pim
  • Weird behavior with Remove() and InsertObject()

    r20 c++ windows
    6
    0 Votes
    6 Posts
    2k Views
    r_giganteR
    @mp5gosu deleted an owned topic is now enabled for all users and no error is anymore notified when attempting to delete a first post. Best Riccardo
  • R20 ignores language/stringtable

    python r20
    3
    0 Votes
    3 Posts
    1k Views
    eggtionE
    That's it! Thank you so much, mp5gosu! Cheers, Mark.
  • LoggerInterface API - reading all lines from the console

    c++ r20 windows
    4
    0 Votes
    4 Posts
    1k Views
    P
    Great, thank you for the great explanation, especially of the loop! I will give it a try. -Pim
  • About threads

    c++ r20
    4
    0 Votes
    4 Posts
    1k Views
    S
    Hello, you find information and examples on jobs and threads in these manuals: Jobs Manual Threads Manual best wishes, Sebastian
  • Controlling Shader with Userdata

    5
    0 Votes
    5 Posts
    2k Views
    dskeithbuckD
    @m_adam I've run into the copy/paste UserData bug a few times. Glad it's been reported!
  • Force update interface of the plugin

    c++ sdk
    4
    0 Votes
    4 Posts
    2k Views
    M
    @m_adam said in Force update interface of the plugin: Regarding advice from @mp5gosu, MSG_CHANGE is only needed when the structure of the object change (you change the count of point for example) since SetParemeter will automatically increase the dirty count of an object is not needed in your case. Sorry, I actually meant EventAdd().
  • Rotate a bitmap image in portrait mode by 90 degrees

    3
    0 Votes
    3 Posts
    2k Views
    G
    @a_block Thank You so much Andreas ! I would like to try all the suggested approaches and hopefully I'll get my issue resolved (except second option is out of my context as I can't use another application). Third potion seems to be the best suited option and I would like to give it a try. Thanks Again...!