season-x
@season-x
New Member
Joined: Feb 15, 2024
Topics: 13 / Replies: 62
Reply
RE: An old question

Yes, I also see these explanations, but I get an error when I try to cast it to convert . ISimpleSpline spl = (ISimpleSpline)obj ;

2 years ago
Forum
Topic
2 years ago
Forum
Replies: 26
Views: 93
Reply
RE: How can I write a Undo/Redo using C#

if((nod.ObjectRef as ISplineShape) == null) { IModifier edspl_mod = (IModifier)g.COREInterface.CreateInstance(SClass_ID.Osm, g.Class_ID.Create(96, 0))…

2 years ago
Forum
Reply
RE: How can I write a Undo/Redo using C#

Is it useful for any Shape?

2 years ago
Forum
Reply
RE: How can I write a Undo/Redo using C#

@Serejah , I haven’t succeeded yet, but thank you! I’ll keep trying. Another problem is that I can’t refresh the line, In the Max script, I can use up…

2 years ago
Forum
Reply
RE: How can I write a Undo/Redo using C#

Yes, I just wanted the node to return to its original state, but I failed. The example you gave is about Bezier Shape . Actually, I was wondering if …

2 years ago
Forum
Reply
RE: How can I write a Undo/Redo using C#

public class SRYRest : RestoreObj { uint nHandle; IINode oldNode; IGlobal g; public SRYRest(uint hnd, IINode node,IGlobal gl) { nHandle = hnd; oldNode…

2 years ago
Forum
Topic
Forum
Replies: 11
Views: 28
Reply
RE: There is not Spline3D Type in "enum ParamType"

I seriously doubt that this is correct: &olShape

3 years ago
Forum
Reply
RE: There is not Spline3D Type in "enum ParamType"

add updateShape $ Splineshap remains unchanged.

3 years ago
Forum
Reply
RE: There is not Spline3D Type in "enum ParamType"

There’s still no error. The Splineshap hasn’t changed. I don’t know what functions are missing

3 years ago
Forum
Reply
RE: There is not Spline3D Type in "enum ParamType"

The “outlinespline” code is too long,so I’m going to test it with a different function: static int DeleteSelSegs(BezierShape *shape, int poly) { Spl…

3 years ago
Forum
Reply
RE: There is not Spline3D Type in "enum ParamType"

I didn’t get any errors, but spline didn’t seem to change.Do i need to upate the Splineshape? but there is the following in my codes: spline->Com…

3 years ago
Forum
Reply
RE: There is not Spline3D Type in "enum ParamType"

Here’s my simple test,but it doesn’t work: Object* obj = node->GetObjectRef(); SplineShape* s = (SplineShape*)obj; BezierShape bs = s->shape; …

3 years ago
Forum
Reply
RE: There is not Spline3D Type in "enum ParamType"

Actually, I want to rewrite ‘OutlineSpline’ ,Because you can’t use it directly, you have to write a function with nodes as arguments.

3 years ago
Forum
Page 4 / 5