SplineObject Problem

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 31/07/2008 at 02:16, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   10.5 
Platform:      
Language(s) :     C++  ;

---------
Hi!

I've a problem with the SplineObject. I create a spline and try to get the segments.

GetSegmentCount() returns 0.. why? When I create two "splines" in one object it returns 2.. Does anyone know?

thanks..

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 31/07/2008 at 02:44, xxxxxxxx wrote:

Hi,

that´s simply the way it is. When it returns 0 it should actually return 1. It means nothing, don´t care. :) (you should however check if there is at least 1 vertex in it...just to be sure 0 means 1).

0+0 ergibt bei Cinema manchmal 1. ;-D

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 31/07/2008 at 04:00, xxxxxxxx wrote:

Hi 3DDesigner..

In c4d 0+0 is 1(sometimes?) I am happy to see, that my plugin is in a good environment.. hehe.

I wrapped this function for my python plugi, so I will fix this issue that get_segment_count() will return 1 on "0".

Danke :)

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 31/07/2008 at 05:57, xxxxxxxx wrote:

If you have a segment count of zero the spline object has no segment tag yet. Check the VariableTag in the docu and also this thread (it applies to C++ and COFFEE)

spline segments

cheers,
Matthias

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 31/07/2008 at 07:39, xxxxxxxx wrote:

Hi!

I have to take my hat off to you.. Thank you for the info.

bye..