• Attribute Manager not updating with Tag Selection

    python
    5
    0 Votes
    5 Posts
    2k 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
    503 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
    2k Views
    R
    Great, I will do that.
  • Python Question

    Moved
    2
    0 Votes
    2 Posts
    561 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
    1k 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
    472 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
    852 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
    1k 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
    730 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
    2k 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
    676 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
    3k 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
    2k 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
    2k 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
  • Error when trying to compile the R21 SDK

    sdk r21
    2
    0 Votes
    2 Posts
    461 Views
    r_giganteR
    Hi Rui, thanks for reaching out us. With regard to your question there are a few things to note: /Applications is a folder which requires elevated permission to write in: I recommend to move the SDK in a different location where standard user permission are required; with R21, whether you're using Xcode 10.1 or further revision, it's supposed that you enable the Legacy Build System in the Project Settings: be sure to set it via File -> Project Settings in Xcode. Finally it's recommended, when such building issues are faced, to provide a description of your development environment. Cheers, R
  • Project Tool Permission Denied

    6
    0 Votes
    6 Posts
    2k Views
    R
    Ok, made it work now. Thank you so much.
  • Unique Tag ID

    python
    9
    0 Votes
    9 Posts
    2k Views
    M
    Hi, issue about hashing byteseq is fixed in R21.1 SP1. Cheers, Maxime.
  • Styling BitmapButtons

    python
    5
    1
    0 Votes
    5 Posts
    2k Views
    M
    Hi, this is fixed in R21.1 SP1. Cheers, Maxime.
  • Error after hitting Undo.

    r20 python
    13
    0 Votes
    13 Posts
    3k Views
    ManuelM
    @m_magalhaes said in Error after hitting Undo.: i just scratch a bit your code, but i've discovered that with the R21, MCOMMAND_SPLIT only return true. I've opened a bug entry for that. this is fixed in R21.1