• python script, is "add to hud" possible to add to my python script?

    r21 python
    3
    0 Votes
    3 Posts
    746 Views
    T
    would love to see that being added. the HUD is amazing for internal tooling
  • Not working FieldLists Keyframes and Tracks

    python r23
    3
    1
    0 Votes
    3 Posts
    604 Views
    mikeudinM
    @ferdinand Thank you! That was TranslateDescID issue!
  • How to understand GraphModelInterface.AddChild().

    2023 maxon api windows python
    11
    2
    0 Votes
    11 Posts
    2k Views
    DunhouD
    Hi @m_adam , I have ask what are main functions in redshift do in redshift forum, but get no reply for week. and the help(redshift) also give me an ambiguous result. But anyway, I have something here, I will update it and publish when I have free times.
  • Retrieve GvNodeMaster from Xpresso Editor/Manager

    python 2023
    3
    0 Votes
    3 Posts
    666 Views
    T
    Hello @ferdinand ! Thank you for such a fast reply! Looks like c4d.modules.graphview.GetMaster(0) does the trick, I was confused at first about "id" in the arguments, but looks like 0 really gives the current active GvNodeMaster! Cheers, Max.
  • Updating a spline

    Moved
    3
    0 Votes
    3 Posts
    694 Views
    KantroninK
    @ferdinand I made this function which works fine: def spline_update(doc,spline,tabNewPoint): tabPoint = spline.GetAllPoints() dim = len(tabNewPoint) if len(tabPoint) != dim: spline.ResizeObject(dim) for i in range(0,dim): point = tabNewPoint[i] spline.SetPoint(i,point) spline.Message(c4d.MSG_UPDATE) return spline
  • Loading in a framesequence to the pictureviewer (EXRs)

    python
    5
    0 Votes
    5 Posts
    947 Views
    G
    Loud and clear! Thankyou!
  • Setting Noise as the Shader in a Displacer

    python 2023
    4
    0 Votes
    4 Posts
    957 Views
    P
    Ok, I understand it now better, thanks.
  • Python CallCommands Are Not Executed When Using Nodes?

    2023 python
    9
    0 Votes
    9 Posts
    928 Views
    ferdinandF
    Hello @bentraje, please excuse the delay, but this bug has been fixed in 2023.2, your code from above should work properly now. Cheers, Ferdinand
  • Change textures path from GetAllAssetNew in the new node editor

    python
    4
    0 Votes
    4 Posts
    2k Views
    ferdinandF
    Hello @Tng, Please excuse the very long waiting time, I simply overlooked the question in your answer. One question regarding Assets from the asset browser, in the case of a random machine that is rendering via command-line, is the Asset stored in the Project File or will it be downloaded if's missing ? Assets will be automatically downloaded when they are accessed and not already localized. The type maxon.Url hides all that complexity away with its different URL schemes. The Asset API manual provides an example for how to manually download an asset. But doing that is not possible in the Python API, here one must always rely on the automated asset access mechanisms. Assets can be stored in project files (via BaseDocument.GetSceneRepository) but are usually not, and instead reside in the user preferences directory bound user preferences repository. Once a remote asset has been accessed, a copy of its primary data, e.g., the texture, the model, etc., resides as a cache in the user preferences of that Cinema 4D installation. That cache will only be updated when the primary or secondary (i.e., metadata) of that asset change. Cheers, Ferdinand PS: I have closed this thread due to its age. Please feel free to reopen it when you have more questions.
  • After id exeetzer axis alignment

    r21 python
    4
    2
    0 Votes
    4 Posts
    902 Views
    ferdinandF
    Hello @WDP, Please excuse the very long delay, but I have to overlooked your answer here. But as stated in my initial posting, we can only provide support on concrete technical questions. If I remember correctly, there was another thread preceding this one where the same rule had been lined out, which is why I was as strict in my answer here as I was. And while we understand that this line of questions usually does not come from a bad place when asked by less experienced Python users, we ultimately cannot provide full solutions or even write applications. What might get you (and other information seekers) started on this subject is the operation_transfer_axis_s26.py code example, as it manipulates the "axis" of an object. I have closed this topic due to the lack of an eligible support request. Please feel free to open a new question when you have tangible coding problem for that subject. Cheers, Ferdinand
  • Creating and initializing nested ObjectData

    c++
    5
    0 Votes
    5 Posts
    1k Views
    M
    Hi @CJtheTiger, the most modular way would be the second one with Message, since it does not require you some weird casting and its pretty generic, so if you change your design you can still rely on the same message to do the things. But there is no wrong way, the one that work the best for you is probably the better. With that's said there is also the MultiMessage method that let you send a message directly to multiple objects according to their hierarchical position via the MULTIMSG_ROUTE input flag. Finally to retrieve the implementation (the NodeData) of a GeListNode(the instance) you can call instance->GetNodeData<Child>() Cheers, Maxime.
  • Custom XPRESSO graph editor, show nodes in object manager

    s26 sdk
    10
    0 Votes
    10 Posts
    2k Views
    F
    Great, thanks a lot for looking into this and for the detailed explanations! Now I know better what my options are! I am marking this thread as "solved". Best regards Filip Malmberg
  • NewObj error: no suitable conversion

    c++
    3
    0 Votes
    3 Posts
    770 Views
    CJtheTigerC
    Hi @i_mazlov, no wonder I felt like I was missing something! And now that the iferr_scope is declared I have to bubble it up all the way and that's how I'll get proper error handling. Sweet! To be honest I read about error handling before but was hoping I could skip it during the prototyping phase. But now that I gotta do it, once I'm out of prototyping it'll even be a lot more stable. Plus I also gotta learn about References now which is probably a good idea. [image: 1687453233334-2c37be53-a3ce-4695-afdb-ab8d3410d19b-image.png] Thanks for the quick help! Have a nice rest of the day! Best wishes, CJ
  • Create Splines without lines

    python
    2
    0 Votes
    2 Posts
    491 Views
    ferdinandF
    Hi @Joel, Thank you for reaching out to us. You might want to have a look at this example script of ours which takes you in a scenic tour through SplineObject handling. I also covered the case of a multi-segment spline there. Cheers, Ferdinand
  • Read Background Color from RS Camera

    python 2023
    3
    0 Votes
    3 Posts
    675 Views
    C
    Thanks a lot for the quick response @ferdinand ! I'll use the raw int values then, thanks
  • How to Add Enum Values to a Node Attribute?

    c++ 2023
    1
    1
    3 Votes
    1 Posts
    331 Views
    No one has replied
  • Apply material to individual faces of a polygon

    python sdk
    8
    0 Votes
    8 Posts
    2k Views
    ferdinandF
    Hey @zauhar, I do not think so that I have told you that, at least I hope so, because that what you say there is not quite correct A vertex map or a vertex color tag can be rendered. When you use the standard renderer, you will have to use the Vertex Map shader, and when you use Redshift, you will need the Vertex Attribute node (just drag and drop the tag in both cases in the respective reference fields of the shaders). Below is an example for the Redshift case: [image: 1686937459914-screenshot-2023-06-16-at-19.41.37.png] Other renderers support Cinema 4D vertex colors too, but you will have to ask their support how that works Vertex Map Shader Vertex Attribute Node Cheers, Ferdinand
  • New Native Redshift camera via Python

    python
    3
    0 Votes
    3 Posts
    566 Views
    M
    Thank you. I got it working thanks to your hints.
  • How to add custom menu to take manager

    3
    0 Votes
    3 Posts
    619 Views
    H
    Hi @i_mazlov, thank you for your reply. Yes, I thought as much. Too bad the take manager menu is not publicy exposed. And while I understand that Maxon as well as the community are not big fans of every plugin messing around with menu insertions, it still is a pitty. One can e.g. insert plugins into the menu of the material manager as done so by "CV-Swim". IMHO it should pose no problem when done carefully with UX in mind while doing so. Especially when one "only" appends entries to a menu. Nethertheless thank you for confirmation. Cheers, Sebastian
  • How to get the Interface language of c4d

    python 2023
    3
    1
    0 Votes
    3 Posts
    525 Views
    chuanzhenC
    @HerrMay Thanks!