Unwanted selections

Hi!

When I'm making a splineShape from my script (a plugin written in maxscript if that is of importance) I get problems with knot and segment selection.
When I select the splineShape manually and for example goes to select individual knots, some of them are already selected. When I click on a knot it gets selected, but the other once are still selected, as if I was holding down Ctrl.
I can deselect knots by holding down Alt, but if I then select a knot and tries to move it (by dragging) the selection jumps back to the once that was selected at the beginning, before the one I selected gets moved.
If I move my selected knot by typing new coordinates it works.

Any idea what's wrong?

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Agon's picture

Ah! Sorry, I think I was a

Ah! Sorry, I think I was a bit unclear.
My plugin is not a shape plugin. It is a simpleObject plugin that generates a mesh along a shape, using pathDeform.
To be able to use pathDeform I have to make copies of the shape with just one spline in each.
So the splines are not created during the create phase of my plugin. They are created later on, when I press a button.

Is there some "end creation" command for splines that I might have missed?

Anubis's picture

"Is there some "end creation"

"Is there some "end creation" command for splines that I might have missed?"

- Yes,- updateShape() /see examples into the help/

my recent MAXScripts RSS (archive here)

Agon's picture

Yepp that's it. Thanks! :)

Yepp that's it. Thanks! :)

Anubis's picture

"(a plugin written in

"(a plugin written in maxscript if that is of importance)"
- Yep, that's importance. The plugins has "on buildMesh do" context and any selection manipulations come accessible after creation end.

my recent MAXScripts RSS (archive here)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.