Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login
    1. Maxon Developers Forum
    2. xNWP
    X
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 9
    • Best 0
    • Controversial 0
    • Groups 0

    xNWP

    @xNWP

    0
    Reputation
    116
    Profile views
    9
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    xNWP Unfollow Follow

    Latest posts made by xNWP

    • RE: [SOLVED/NotABug] Bug with c4d.CPolygon

      Thanks for all the extra info guys! I'll make sure to use the ask-as-a-question feature next time 🙂

      posted in Cinema 4D SDK
      X
      xNWP
    • RE: [SOLVED/NotABug] Bug with c4d.CPolygon

      I see, sorry for the confusion, thanks for the reply!

      I was under the assumption that the CPolygon would stay as a triangle until you changed the 'd' attribute, in hindsight I realize why that wouldn't be the case (d is a property and isn't being set by a function). As for the improper True comment, I must have set 'd' to zero while testing and missed that while copying back the code, my bad.

      posted in Cinema 4D SDK
      X
      xNWP
    • [SOLVED/NotABug] Bug with c4d.CPolygon

      Cinema 4D Version: R21
      OS: Windows 10

      UPDATE: Not a bug, the CPolygon determines whether it's a triangle by checking if c == d.

      Setting the 'c' component of a triangle CPolygon to anything other than 0 will cause the CPolygon to no longer be a triangle.

      Foo = c4d.CPolygon(0, 1, 2)
      Foo.IsTriangle() # True
      
      Foo.c = 0
      Foo.IsTriangle() # True
      Foo.c = 5
      Foo.IsTriangle() # False
      

      EDIT: The problem also occurs with the C++ sdk, and also occurs if you set 'c' to 0.

      CPolygon x( 0, 1, 2 );
      x.IsTriangle(); // True
      
      x.c = 0;
      x.IsTriangle(); // False
      
      posted in Cinema 4D SDK r21
      X
      xNWP
    • RE: VolumeData::trans vs VolumeData::alpha

      The distinction between pixel color and contribution of the ray to the pixel really helps clear things up. Thanks for all the help 🙂

      posted in Cinema 4D SDK
      X
      xNWP
    • VolumeData::trans vs VolumeData::alpha

      Hi all, I'm creating a MaterialData plugin type and need to set the alpha and transparency information. Could anyone verify the difference between Alpha and Transparency for me? From what I've gathered, transparency effects the objects opacity without effecting the rays in any way, whereas alpha will effect the ray intensity. Is this the only difference?

      Thanks in advanced for any answers 🙂

      posted in Cinema 4D SDK
      X
      xNWP
    • RE: SetInt32 fails on ComboBox even if the change occurs

      @a_block

      No inconvenience at all, just happy to hear it's not only me! 😄

      posted in Cinema 4D SDK
      X
      xNWP
    • SetInt32 fails on ComboBox even if the change occurs

      Hi all,

      So I stumbled across a bizarre bug (?). On the InitValues() function for my GeDialog I noticed that setting a ComboBox to the default value always returns false, even though it clearly works in the GUI. This is a bit annoying since I'm trying to maintain defensive programming. Am I going wrong somewhere or is this a bug with the API itself? The code is below along with a link the file on GitHub (the project is open source if you need to look around).

      if(!this->SetInt32(CBX_COORDINATE_SYSTEM, CBO_Y_UP))
          return false;
      

      CBX_COORDINATE_SYSTEM exists in c4d_symbols.h as does CBO_Y_UP.

      https://github.com/xNWP/HLAELiveLink/blob/687e07ae56e2fe60869fde717054f6e75a3825ef/source/hll_gui.cpp#L27

      Thanks in advanced!

      posted in Cinema 4D SDK c++ windows r20
      X
      xNWP
    • RE: WebSocket Server

      Thank for the reply r_gigante 🙂

      I did in fact find the interface without any issues but was having issues using it in any way, I got as far as telling that it needed to use the Class<T> template but was unable to figure out due to either lack of documentation or my own lack of C++ knowledge 😛

      I'll likely just stick to my own WebSocket library in the meantime until this feature is well documented/supported 😄

      posted in Cinema 4D SDK
      X
      xNWP
    • WebSocket Server

      Platform: Win 10 x64
      C4D/API Version: R20
      Language: C++

      Hi all,

      I'm trying to develop a plugin that relies on running a WebSocket server, receiving a clients connection, and sending/receiving data. I've found the network_websocket header in the network framework and have been looking through trying to figure it out. However there seems to be a lack of documentation on this, if anyone can point me in the right direction I would be incredibly grateful ! Thank-you all in advanced.

      posted in Cinema 4D SDK
      X
      xNWP