PDA

View Full Version : Problem with convertToSplineShape()


Caprier
07-07-2009, 02:33 PM
If the spline is of type Line, convertToSplineShape() returns a Line object instead of an Editable Spline and accessing properties like numSplines triggers an error.

Any idea on how to get around this? Applying and collapsing a Reset XForm does the trick but it flushes the undo buffer.
Using max 9, btw.

Gravey
07-07-2009, 03:37 PM
use the numSplines function instead of the SplineShape property.
sonumSplines <Line | SplineShape>instead of<SplineShape>.numSplinesno need for it to be specifically a splineshape over a line

Caprier
07-07-2009, 04:14 PM
That's perfect. Thanks :)

CGTalk Moderation
07-07-2009, 04:14 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.