• 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
    2k 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
    1k 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
    2k 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
    1k 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...!
  • Compiling for R20

    c++ r20 sdk windows project tool
    3
    0 Votes
    3 Posts
    1k Views
    a_blockA
    Hi, glad you were able to solve your problem. We'll take this as a hint and see if we can improve our documentation in this regard. Cheers, Andreas
  • Source processor bug

    3
    0 Votes
    3 Posts
    1k Views
    a_blockA
    Hi, actually this is not a bug, but a design decision. Here at MAXON we have a pretty large code base and especially disabled code branches tend to age a lot faster. So we try to force developers to also maintain such code pieces or to at least think about, if they are still valuable and otherwise remove and thus cleanup the code base. Cheers, Andreas
  • R19: SplitPolygon and Ngon indices

    r19 c++
    4
    0 Votes
    4 Posts
    2k Views
    B
    @r_gigante Thank you very much for your help, Riccardo! The suggested method of calculating the ngon index works fine with the Modeling::SplitPolygon() function, but functions like Modeling::GetEdgeNgons() sometimes return unexpected indices, which seem to be based on a different logic. I have updated the demo plugin and also included an image (NgonIndexProblem.png) in the zip file, which explains the problem: https://files.frankwilleke.de/index.php/s/EpGg1TkdzIemWJl In this case Modeling::GetEdgeNgons() and Modeling::GetPointNgons() returns indices which seem to be a confusing mix of ngon and polygon indices (or indices with and without offsets). Do you have any more ideas? Thanks in advance, Tim
  • win_macros.h Error

    c++ windows r20 sdk
    3
    0 Votes
    3 Posts
    1k Views
    M
    Hello, please see here: https://developers.maxon.net/docs/cpp/2023_2/page_maxonapi_programming_advice.html and especially here: https://developers.maxon.net/docs/cpp/2023_2/page_maxonapi_dev_windows.html (Windows includes)
  • Linking python tag userdata to null (ie compositing tag)

    6
    0 Votes
    6 Posts
    2k Views
    Y
    Hi, The Test tag plugin is missing in the linked c4d file but I see the behavior with another tag plugin (Py-LookAtCamera SDK example). I was wrong in my previous post. This behavior of the Attribute Manager is applied to tags that can be added only once to an object. This can't be done for tags that can be added multiple times. Unfortunately the Python tag is registered with TAG_MULTIPLE flag so it can be added multiple times to an object but the parameter tab isn't attached to its parent object.
  • Folder Structure Changes in R20

    2
    0 Votes
    2 Posts
    891 Views
    a_blockA
    Hello Daniel, thanks for reporting this. There are currently a few issues regarding the Plugins menu pending. These are being investigated. Cheers, Andreas