Klvnk
@klvnk
New Member
Joined: Feb 14, 2024
Topics: 50 / Replies: 1212
Reply
RE: Need an algorithmic idea

I use the kdtree for this… keep adding points to the tree while they the fixed distance apart (you have to have an ‘attempts’ variable to stop it tryi…

3 years ago
Forum
Reply
RE: How to Create a arc through 3 points with maxscript?

thanks, you could add a dot ab bc == 1.0 test and if true create a line instead… sp = splineshape(); sl = addnewSpline sp; addKnot sp sl #bezierCorne…

3 years ago
Forum
Reply
RE: How to Create a arc through 3 points with maxscript?

for the latter… something like this ? fn intersection2d p1 r1 p2 r2 = ( dx = p2.x – p1.x, dy = p2.y – p1.y; det = r2.x * r1.y – r2.y * r1.x; p1 +…

3 years ago
Forum
Reply
RE: How to Create a arc through 3 points with maxscript?

for those particular solutions thats 3 points and 2 tangents btw or are we talking circle fitting ?

3 years ago
Forum
Reply
RE: Is it possible to compile maxscript online?

with c# and c++ etc the core runtime libraries required to execute the code are in the public domain along with the required compilers… not so with mx…

3 years ago
Forum
Reply
RE: C# biped interface

no has the same… #define I_BIPMASTER 0x9165 #pragma deprecated(“I_BIPMASTER”) #define I_BIPDRIVER 0x9165 do you need to check it’s a valid biped s…

3 years ago
Forum
Reply
RE: C# biped interface

It would probably start with something like IIBipMaster if it is, Yeah I was looking at an older sdk help (it’s much faster to navigate and far more u…

3 years ago
Forum
Reply
RE: SDK-C# Set transform controller value

I’m not using dotnet , just making guesses as I know nothing about c# and max. The only I can think of trying is to create your own c# callable c++ fu…

3 years ago
Forum
Reply
RE: SDK-C# Set transform controller value

could try something like… unsafe { object setXFormPacket = globalInterface.SetXFormPacket.Create(matrix,globalInterface.Matrix3.Create(…

3 years ago
Forum
Reply
3 years ago
Forum
Reply
RE: SDK-C# Set transform controller value

what about… object setXFormPacket = globalInterface.SetXFormPacket.Create(matrix,globalInterface.Matrix3.Create()); object* ptr = &setXFormPacket…

3 years ago
Forum
Reply
RE: SDK-C# Set transform controller value

“&” in &pckt means we should send the pointer not variable, right? yes in you are passing the memory address of the object… you could also d…

3 years ago
Forum
Reply
RE: SDK-C# Set transform controller value

virtual void Control::SetValue ( TimeValue t, void * val, int commit = 1, GetSetMethod method = CTRL_ABSOLUTE ) [pure virtual] …

3 years ago
Forum
Reply
RE: SDK-C# Set transform controller value

try the c# version of this… SetXFormPacket pckt(destTM); tmControl->SetValue(ip->GetTime(), &pckt);

3 years ago
Forum
Reply
RE: SDK-C# Set transform controller value

have you tried… selNode.SetNodeTM(time, matrix); ? otherwise you need to know what controller you are going to be dealing with usually a PRS so you…

3 years ago
Forum
Page 8 / 85