• SortedArray() - "Namespace Maxon has no member class "SortedArray"

    4
    1
    0 Votes
    4 Posts
    1k Views
    P
    @s_bach said in SortedArray() - "Namespace Maxon has no member class "SortedArray": #include "maxon/sortedarray.h" Great, thanks to the both of you. Next time, I will mark it as a question. -Pim
  • Checking Keyframe curve type

    python r19 windows sdk
    2
    0 Votes
    2 Posts
    673 Views
    S
    Hello and welcome, what exactly do you mean with "export keyframe data"? Do you want to write data into a file? The best way to develop such code would be in a Python script that you can edit and execute in the Script Manager. A XPresso Python node is meant to contain code that is executed as part of XPresso to define the behavior of the XPresso network. A XPresso Python node should not be used to modify the scene or to perform I/O operations. A CTrack object stores the DescID of the associated parameter. You can access that DescID with GetDescriptionID(). Alternatively you can use BaseList2D.FindCTrack() to search for the CTrack associated with a certain parameter DescID. You find an example on GitHub. You find general information on how to use CTrack and DescID also in the C++ documentation: CTrack Manual DescID Manual best wishes, Sebastian
  • line limit for function??

    c++ project tool r20
    2
    0 Votes
    2 Posts
    854 Views
    a_blockA
    Hi ello, no, you don't need to worry, the compiler won't check the remaining lines. It is a warning, we use internally to make people write better code. Usually smaller functions are easier to maintain and thinking about how to properly split and slice your code leads to better better results. By the way, compilers nowadays do quite a good job on inlining functions, so one does not need to be afraid of performance issues. But in the end this is probably also a matter of personal taste and so you can configure this in your projectdefinition.txt. See the Stylecheck options in our Project Tool documentation, there you have the option to set the maximum line count for functions (stylecheck.max-linecount=number). Please consider the use of tags and of our Q&A system. Cheers, Andreas
  • Some suggestions about Python SDK

    5
    6
    0 Votes
    5 Posts
    2k Views
    r_giganteR
    Hi Mike, please check this thread to properly use the Q&A functionality. Cheers, Riccardo
  • SetPercent() not working...

    r19
    7
    0 Votes
    7 Posts
    2k Views
    G
    @m_adam Hi, Thanks for your answer. I applied your changes and it worked like a charm . Thanks again!!!
  • BaseArray::Insert( position, value ) documentation

    r19 r20 c++ sdk
    3
    0 Votes
    3 Posts
    745 Views
    S
    Hello, Indeed this example is wrong. We will fix that as soon as possible. Thanks for noticing us. best wishes, Sebastian
  • NewMem question

    6
    0 Votes
    6 Posts
    2k Views
    E
    thank you. i got this working. maybe there are even other places in my code where i can use this knowledge
  • 0 Votes
    4 Posts
    2k Views
    A
    For anyone who would like to use or learn from the script. You can download full script from github. ( Get And Copy Textures From Texture Tags )
  • getting 3D noise values

    python
    4
    0 Votes
    4 Posts
    1k Views
    R
    Thanks @eziopan and Sebastian for your answers ! So far I searched a way for getting values out of the 3D noise shaders. Starting point was the c4d.BaseShader class but it seems to me that accessing these shaders in order to get noise values is much more cumbersome than using the C4DNoise class and specifying the corresponding noise type as parameter 't' - as @eziopan has pointed out. So: thank you - problem solved ... and sorry, I haven't read the Q&A system thoroughly enough - next time I will mark my post properly. cheers, Jens
  • styleguide warnings

    c++ r20
    7
    0 Votes
    7 Posts
    2k Views
    E
    thank you.
  • 0 Votes
    13 Posts
    3k Views
    E
    hm, in the sdk help it is mentioned under "api change list in r20"... scrolling down to lib_description.h i installed VS2015 just for seeing if it works better with c4d. however, in 2017 i had a nice built output where i could sort errors and warnings. this isn't there in the 2015 version, or do i need to toggle it somewhere. cannot find nevermind, found it
  • GetLength compiler error

    c++
    4
    0 Votes
    4 Posts
    1k Views
    a_blockA
    Hi, while @mp5gosu already provided the answer, I'm just chiming in to mention, that I converted your thread into a question, see Q&A Functionality and also added a tag to this thread, see Read Before Posting. Cheers, Andreas
  • Source processor definitions

    r20 c++
    2
    0 Votes
    2 Posts
    661 Views
    a_blockA
    Hi, I guess you are talking about rule sets to automatically enforce our code style guide. No, for now we do not provide such files. But I'll forward this as an idea to our development. So long all we have is the documentation of our code style guide. Cheers, Andreas
  • Project Tool include

    project tool
    9
    0 Votes
    9 Posts
    2k Views
    a_blockA
    Hi, we have forwarded your ideas and suggestions toi our development. Add post build phases to the project. At least add a custom Run Script that runs a specified script so we can properly install the plugin. While I do see use cases for a post-build script/step option, it may not be needed for the purpose of installing a plugin. After all in R20 plugins can be located in arbitrary locations (like for example your project directory). You just need to add these locations via either preferences or via environment variable or command line option. (bug) XCode project gets corrupted if we add a file twice with Include. I'm not sure if I can follow here. Can you please check, if you are also lacking a release build option, if you run the project tool on a freshly unpacked sdk.zip? Actually you should have all the options shown in the screenshot below: [image: 1540581184711-261018_113521_0-resized.png] Cheers, Andreas
  • Description... missing member "ID"

    5
    0 Votes
    5 Posts
    1k Views
    E
    @s_bach thank you. i still am on my road... at least it solves the compiler error. i get quite some crashes after updating. guess this will take some time
  • How to use c4d.utils.PolygonReduction

    Moved r19 python
    5
    0 Votes
    5 Posts
    2k Views
    R
    Thank you! This is so much clear now
  • Adding items to a LONG/CYCLE description container.

    python r20
    4
    1
    0 Votes
    4 Posts
    2k Views
    M
    You have to declare hdrs as a member variable. See 9.3.5: https://docs.python.org/2/tutorial/classes.html
  • One more Multi-License Server question

    4
    0 Votes
    4 Posts
    1k Views
    r_giganteR
    @klaus Hi Klaus, please write to our support email address for further assistance on serial number syntax. Best, Riccardo
  • VPBUFFER_OBJECTBUFFER is not rendered correctly

    r20 c++
    4
    0 Votes
    4 Posts
    1k Views
    r_giganteR
    Hi Petros, glad that you get it fixed. With regard to buffer allocation via AllocateBuffer, being those buffer handled by Cinema, they are automatically released as soon as the multipass bitmap containing such buffers are passed to the PictureViewer. Best, Riccardo
  • Drag GeUser Area Dialog window which is in DLG_TYPE_ASYNC_POPUPEDIT mode

    4
    0 Votes
    4 Posts
    1k Views
    a_blockA
    Hi, as I said in my previous post, I have no ideal solution for you. By "awkward" I wanted to express, that I expected this to be not the solution you want, after all such a move by resizing would imply at least to size operations by the user, if both screen are equal size. And unfortunately I have nothing else to offer. Sorry. Bye, Andreas