• DoUndo() issue when using loop selection, ring, ...

    r19 r20 r21
    6
    0 Votes
    6 Posts
    796 Views
    C4DSC
    @r_gigante Hi Riccardo, Thanks for the explanation. I wasn't sure that a "Solved" thread would still get revisited by SDK team members. As Manuel mentioned "I'll come back when I got more information", but the thread was set to solved, I wasn't sure the thread would get an update. Also, others visiting the forum (now or in future) might be misleaded by the state of the thread, thinking that the bug has been fixed, while it actually isn't. But now I understand a "bug fixed" tag is being added. Seems I need to pay more attention to the tags, as I assumed these tags were added by the creator of the thread. As such, I never really paid any attention later on, as I assumed the tags I added were the only ones to be available for that thread, and only the unsolved/solved state would change as a result of a resolution. Thanks for clarifying.
  • Multiple animation import

    python r20 r21
    9
    2
    0 Votes
    9 Posts
    2k Views
    S
    @kbar @m_adam Thanks for the help lads, the markers were already added thanks to Kent suggestion in his previous reply. Now the only things left are a little "GlTF-fighting", and some more polishing, packaging and testing before updating the plugin with a - hopefully - nice animation support ! I'll let you know when that's done (probably not before 2020 though ). Cheers, Loïc
  • Failed to get data from BaseContainer

    r21 c++
    3
    0 Votes
    3 Posts
    438 Views
    chuanzhenC
    Hi, @r_gigante Thank you for your reply. With your help, I finally traced the source of the problem. As you said, the reason for the error(Critical Stop) is that there is no Container at all. Because of a very hidden error in somewhere, I wrote the wrong data type to BaseContainer.
  • PoseMorph Tag question

    5
    1
    0 Votes
    5 Posts
    2k Views
    M
    The mode specifies how data can be read from the Morph Tag. By default, they are presented in a compact way (aka only modified points are stored for some internal optimization). But if you SetMode with c4d.CAMORPH_MODE_FLAGS_ALL | c4d.CAMORPH_MODE_FLAGS_EXPAND then all the points are then readable from outside of the morph Tag. I adapted the Python documentation to match the C++ documentation so it will be available in the next documentation update. But I would say the C++ documentation for SetMode is pretty self-explanatory, what is the part you don't understand? Cheers, Maxime.
  • Method to access CAMorphNode pointdata reference index?

    Moved
    3
    0 Votes
    3 Posts
    899 Views
    jenandesignJ
    THank you so much!
  • GetGeneralLicensingInformation() in TeamRender Client fails

    3
    0 Votes
    3 Posts
    567 Views
    fwilleke80F
    The way it's described in the SDK docs, I do not get any error message: [image: 1576494560496-screen-shot-2019-12-16-at-12.08.48.png] By diving into the location in the API where the error is thrown, I might have found that it's a nullptr error. [image: 1576494318563-screen-shot-2019-12-16-at-12.04.55-resized.png]
  • AddUndo(c4d.UNDOTYPE_CHANGE) not working with doc.ExecutePasses()?

    r21 python
    3
    0 Votes
    3 Posts
    409 Views
    B
    @m_magalhaes Oh gotcha. Thanks for the reminder. Totally forgot they UNDOTYPE_CHANGE have a different placement thant UNDOTYPE_NEW Thanks again. Have a great day ahead!
  • Export Issues (FBX / DAE)

    2
    0 Votes
    2 Posts
    564 Views
    ManuelM
    Hello, We've talked about this issue in our morning meeting. Contrary to what I've said, it's Core related and not API related. (limitation of cinema4D itself in fact) You have to open a ticket in our support. Tell them you are coming from our forum and it's not related to the API and it's a Core Problem. Sorry for wasting a bit of your time but we need to keep organized. Cheers, Manuel
  • R21 GeUserArea in docked GeDialog behaves differently

    c++ r21
    4
    0 Votes
    4 Posts
    796 Views
    M
    Still not I will update you as soon as I have some news. Cheers, Maxime.
  • Reverse iterators, how to use them?

    r21 r20 c++
    8
    0 Votes
    8 Posts
    900 Views
    C4DSC
    @m_adam said in Reverse iterators, how to use them?: Hi @C4DS Here the message from the development team which confirms what I said to you previously. Hi Maxime, I didn't doubt what you said earlier. I only wanted to point out that it wasn't clear from reading the documentation which collection could be used with reverse iterators. It's nice mentioning in the documentation about RBegin/REnd, Range based loops, etc ... but not everyone looks into the collection implementation to see which types do have RBegin/REnd or are range based, ... HashMap doesn’t support -- so you can’t use a reverse iterator for that. It wouldn’t make sense anyway because HashMap iteration is unordered. Having used std::map some might expect HashMap to be ordered, but it isn't mentioned anywhere it isn't. But the point has been made, and it is now clear how to use reverse iterator. Topic well be closed as "solved".
  • Attribute Manager not updating with Tag Selection

    python
    5
    0 Votes
    5 Posts
    1k Views
    M
    @C4DS Thank your reply! I had to come back to this because I had problems with switching back to object context and this solved that!
  • Clone Texture Tag to Children while preserving Coordiates

    python
    13
    0 Votes
    13 Posts
    2k Views
    indexofrefractionI
    ah... ok, now i understand the picture ! thanks, manuel I marked the thread as solved
  • Distinct geometry objects from others?

    3
    0 Votes
    3 Posts
    392 Views
    indexofrefractionI
    thanks a lot! for others and myself here a reference to the python SDK https://developers.maxon.net/docs/py/2023_2/modules/c4d/C4DAtom/GeListNode/BaseList2D/index.html#BaseList2D.GetInfo
  • Undefined symbols

    r21 sdk
    12
    0 Votes
    12 Posts
    1k Views
    R
    Great, I will do that.
  • Python Question

    Moved
    2
    0 Votes
    2 Posts
    419 Views
    M
    Hi @turrican welcome in the plugincafe community. I moved your topic in the correct category and assigned tags, see (How to Post Questions) Please do it for your next topics. Regarding your question, yes it's possible to do it in python. however, I suggest you contact maxon support to report the initial bug regarding the FBX importer. Now you have to keep in mind here we don't code for you but help you to achieve what you want. So the steps in python for doing it are: Loops over each material. Retrieves their name. Create a Bitmap Shader and assign it to the correct channel of the material (normal). To loop over each material, keep in mind that material in Cinema 4D is BaseMaterial which is a child class of GeListNode so to loop over all material use # Retrieve the first material of the current document mat = c4d.documents.GetActiveDocument().GetFirstMaterial() # loop over each material while mat is not None: # Do the things for each mat mat = mat.GetNext() To create a bitmap shader (c4d.Xbitmap) and assign a texture to it find an example in shader_create_bitmap_r13.py. To know the ID of the normal channel, just drop and drop it into the console, see Python Console - Drag and Drop. Cheers, Maxime.
  • I want to get the coordinates of the points I have selected "en"

    r21 c++ windows
    4
    0 Votes
    4 Posts
    902 Views
    D
    @m_magalhaes I'll write it in your way Thank you very much. Cheers!
  • Access parameter failed

    c++ r21
    3
    0 Votes
    3 Posts
    374 Views
    chuanzhenC
    @s_bach Thanks, I ignored the parameter check and it works now!
  • Wrong indentation of if ?!?! What is wrong?

    sdk r21
    5
    0 Votes
    5 Posts
    643 Views
    r_giganteR
    Hi Rui, thanks for reaching out us. With regard to your issue, I confirm that whilst VS is more "tolerant" with regard to code-style check, Xcode is less. The code style check, which is embedded in our source processor, expects tabs rather than spaces for code indentation and it could happen that either Tabs has not be set in Xcode preferences, as preferred indentation method, or that you've copied and pasted some portion of code that was indented with spaces. Please check your indentations for using tabs rather than switching off completely the style check. Best, R
  • Set Use As Render View

    python
    3
    0 Votes
    3 Posts
    812 Views
    U
    Thank you Manuel, that works perfectly. I can use CallCommand() but I don't want to as it will always call c4d.EventAdd() and as I can't specify which bd to set as the renderview. I tend to not use CallCommand() in a plugin as it is only be able to be called in the main thread (which would be fine in this case) and as it seems to 'simulate' user interaction.
  • String to ASCII value and vice-versa.

    sdk r21
    4
    0 Votes
    4 Posts
    568 Views
    S
    Hello, just FYI: you find information on how to access individual characters from a string in the manual: String Manual Also, one of our examples includes checking the ASCII value of a given character: streamconversion_impl.cpp If your question has been answered, please mark your thread as a question and set it to "solved". best wishes, Sebastian