• hud depth buffer?

    Cinema 4D SDK r19 2023 python
    6
    1
    0 Votes
    6 Posts
    1k Views
    ymoonY
    Added one more for... zip to remove the invisible points.
  • Drop-down list in tag for C++ plugin

    Cinema 4D SDK c++ r19
    7
    0 Votes
    7 Posts
    1k Views
    yesbirdY
    Hello, @ferdinand Thanks, I will take it into account. All the best, ... YB
  • How to change bitmap in layered shader?

    Cinema 4D SDK python r19
    3
    0 Votes
    3 Posts
    1k Views
    V
    Perfect! Thank you so much!
  • Commandline.exe not loading lib4d preset materials

    General Talk r19
    2
    1
    0 Votes
    2 Posts
    595 Views
    ManuelM
    Hi, This forum is dedicated to the support of our API. Your issue does not seem to be related to any coding question. If this is not the case, please contact our user support for any question. Cheers, Manuel
  • The oldest SDK for Cinema 4D 19-25

    Cinema 4D SDK sdk r19 r20 r21 r25 r23 s22 s24
    7
    0 Votes
    7 Posts
    2k Views
    ferdinandF
    Hello @jeremyliu1989, without any further questions or postings, we will consider this thread as solved by Friday the 4th, February 2022. Thank you for your understanding, Ferdinand
  • Can GeGetStartupWritePath return icorrect path?

    Cineware SDK r19
    3
    1
    0 Votes
    3 Posts
    2k Views
    ferdinandF
    Hello @mikeudin, without any further questions we will consider this topic as solved by Friday, December the 17th. Thank you for your understanding, Ferdinand
  • 0 Votes
    3 Posts
    748 Views
    ferdinandF
    Hello @Артём, we will set this topic to 'Solved' when there are no further questions or replies until Monday, November the 22th. Thank you for your understanding, Ferdinand
  • NodeData Undo

    Cinema 4D SDK r20 r19 r21 c++
    13
    0 Votes
    13 Posts
    2k Views
    ferdinandF
    Hello @C4DS, without any further questions, we will consider this topic as solved by Monday, the 25th and flag it accordingly. Thank you for your understanding, Ferdinand
  • 0 Votes
    4 Posts
    860 Views
    C4DSC
    Seems the only solution here is to register an own mode.
  • 2 Votes
    8 Posts
    2k Views
    ferdinandF
    Dear community, this bug has been fixed and will be integrated with an upcoming release of Cinema 4D S24 (hopefully the next one). Cheers, Ferdinand
  • SSL TLSV1_ALERT_PROTOCOL_VERSION Error on Mac

    Cinema 4D SDK r19 python macos
    3
    0 Votes
    3 Posts
    1k Views
    ?
    @m_adam Thank you, Maxime! Have a good weekend.
  • Handles in R18

    Cinema 4D SDK python r19 windows
    3
    1
    0 Votes
    3 Posts
    685 Views
    ?
    Thank you for letting me know, @ferdinand !
  • How to know baking is end with BakeTextureTag?

    Cinema 4D SDK python r19
    7
    0 Votes
    7 Posts
    1k Views
    M
    Hi @velbie with the latest update of Cinema 4D (R24 SP1), the BAKE_TEX_AO_VERTEXMAPS issue is fixed. Cheers, Maxime.
  • ToolPlugin Problems

    Cinema 4D SDK python s22 r21 r20 r19
    7
    2
    0 Votes
    7 Posts
    1k Views
    kbarK
    @gheyret great to hear! Looking forward to seeing what it is you are creating.
  • 0 Votes
    4 Posts
    1k Views
    r_giganteR
    Hi @hazzzel, thanks for reaching out us. The QueryStartupOrder() has been introduced in R20 and there's no way to call it on previous releases. As suggested by @kbar , you're instead supposed to make use of the SetPluginPriority() as shown in the Plugin Functions Manual / Priority section to properly specify the plugin priority and control the loading time. Cheers, R
  • Add and Remove Edge Loops Poly Object

    Cinema 4D SDK python r19
    12
    1
    0 Votes
    12 Posts
    3k Views
    A
    Hi @r_gigante, Not to worry! I understand! Thanks for your help! Andre
  • 0 Votes
    6 Posts
    1k Views
    ferdinandF
    Hi, I am sorry, I hate it myself when people talk in acronyms, assuming everyone knows what they are referring to. PNG stands for Pseudo-random Number Generator. Here is an example for a simple trigonometric pseudo random hash function. Cheers, zipit """A simple example for a very simple "one-at-a-time" Pseudo-random Number Generator (PNG). It is basically just one line of code, which you can find on line 32. """ import c4d import math def hash_11(x, seed=1234, magic=(1234.4567, 98765.4321)): """Returns a pseudo random floating point hash for a floating point number. The hash will lie int the interval [-1, 1] and the function is a very simple generator that exploits the periodicity of the trigonometric functions. A more sophisticated approach would be to exploit avalanche behavior in bit-shift operations on binary data, like the Jenkins Rotation does for example. The postfix in the name (_11) is a common way to denote the inputs and outputs for PNGs. 11 means that it will take one (real) number and return one (real) number. 13 means that it takes one and returns three, i.e. returns an (euclidean) vector. Args: x (float): The value to hash into a pseudo random number. seed (int, optional): The seed value. This could also be a float. magic (tuple, optional): The magic numbers. The second one should be bigger then the first and both should be real numbers. Returns: float: The pseudo random hash for x in the interval [-1, 1]. """ return math.modf(math.sin(x + seed + magic[0]) * magic[1])[0] def hash_13(x, seed=1234, magic=(1234.4567, 98765.4321)): """Returns a pseudo random vector hash for a floating point number. Wraps around hash_11. Returns: c4d.Vector: The pseudo random hash for x in the interval [-1, 1]. """ vx = hash_11(x, seed, magic) vy = hash_11(x + vx, seed, magic) vz = hash_11(x + vy, seed, magic) return c4d.Vector(vx, vy, vz) def main(): """Entry point. """ # Some very crude statistics for the hashes. samples = int(1E6) # Generate 1E6 of each numbers = {i: hash_11(i) for i in range(samples)} vectors = {i: hash_13(i) for i in range(samples)} # Compute their arithmetic mean. amean_numbers = sum(numbers.values()) * (1./samples) amean_vectors = sum(vectors.values()) * (1./samples) # Report the results. print "First three random numbers: ", numbers.values()[:3] print "First three random vectors: ", vectors.values()[:3] msg = "Arithmetic mean of all random numbers (should converge to zero): " print msg, amean_numbers msg = "Arithmetic mean of all random vectors (should converge to zero): " print msg, amean_vectors if __name__ == "__main__": main() First three random numbers: [-0.8036933662078809, 0.20401213006516628, 0.6249060598929645] First three random vectors: [Vector(-0.804, -0.022, -0.872), Vector(0.204, 0.541, 0.115), Vector(0.625, 0.782, 0.896)] Arithmetic mean of all random numbers (should converge to zero): -0.000127638074863 Arithmetic mean of all random vectors (should converge to zero): Vector(0, 0, 0)
  • GeDialog shadows

    Cinema 4D SDK c++ windows macos r20 r19
    6
    0 Votes
    6 Posts
    1k Views
    ManuelM
    hi, this is the current state: "I think this is related to the ASYNC_POPUPEDIT being a non-resizable, modal dialog - and as such it is displayed kind of "Win legacy style" by the OS. Nothing we actively do set (and something which could change once they do further design overhauls in Win10)" Cheers, Manuel
  • 0 Votes
    4 Posts
    919 Views
    M
    Hi @daniell welcome on the plugincafe forum, Don't worry since it's your first post, I've set up it correctly but please for the next one, make sure to read and apply the next rules: Q&A New Functionality. How to Post Questions especially tagging. Finally, regarding your issue, you may find relevant the NodeData::GetDParameter() Manual and NodeData::SetDParameter() Manual. Cheers, Maxime.
  • Custom data+gui access with GetParameter()

    Cinema 4D SDK c++ r21 r20 r19
    6
    0 Votes
    6 Posts
    1k Views
    rsodreR
    @m_magalhaes No hurry, for now there's just one place where I need this, I get it using the BaseContainer. But I will probably use it more often, so if the DOTS example is updated I can replicate the solution to my own type and remove this workaround. Thanks!