Thanks for all the extra info guys! I'll make sure to use the ask-as-a-question feature next time
Posts made by xNWP
-
RE: [SOLVED/NotABug] Bug with c4d.CPolygon
-
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.
-
[SOLVED/NotABug] Bug with c4d.CPolygon
Cinema 4D Version: R21
OS: Windows 10UPDATE: 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
-
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
-
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
-
RE: SetInt32 fails on ComboBox even if the change occurs
No inconvenience at all, just happy to hear it's not only me!
-
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.
Thanks in advanced!
-
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
-
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.