• GetGeneralLicensingInformation() in TeamRender Client fails

    3
    0 Votes
    3 Posts
    538 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
    392 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
    530 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
    764 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
    827 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
    373 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
    398 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
    837 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
    355 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
    600 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
    739 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
    531 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
  • Trim a bitmap

    Moved
    5
    1
    0 Votes
    5 Posts
    1k Views
    G
    Thank you, @s_bach I have enough here to figure out what I need to do. Cheers!
  • Use of undeclared identifier 'tmperr_ies'

    3
    0 Votes
    3 Posts
    526 Views
    R
    Thank you very much, RIccardo. I will look into it tonight when I get home.
  • Get CustomGUI Data in python

    python c++ r20 sdk
    9
    0 Votes
    9 Posts
    2k Views
    N
    Hello Sebastian, I now understand what the difference is, thank you very much! With the customdata_customgui example file I actually made both a GUI and a custom DataType. So I only needed to change my resource file and modifiy my data code a bit! Best Regards, Florian
  • 0 Votes
    9 Posts
    1k Views
    S
    @m_magalhaes Hello, thank you very much for your inspiration. You've been very helpful. There is no need to overwrite TranslateDescID(), only two macros HandleDescGetVector and HandleDescSetVector can realize my idea. Thanks again! Cheers, Sean
  • Strange crashes in R20 & R21

    c++ r21 r20 macos
    5
    0 Votes
    5 Posts
    1k Views
    r_giganteR
    Thanks for the update Frank. Looking at your "resolutions" I think that the actions you took were responsible, in the first case, to clean the existing derived data for the R20 project, whilst in the second, to refresh the DerivedData subfolder where the newly re-created R21 project was supposed to store intermediate files. Please keep us updated and for the mean time I'm going to set this thread as solved. Cheers