PrimSpline->GetSplineObject()?

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

On 01/09/2010 at 19:55, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   R12 DEMO 
Platform:   Windows  ;   Mac OSX  ; 
Language(s) :   C.O.F.F.E.E  ;

---------
I've managed to get the new(SplineLengthData) to work on editable spline (Point object)

Before I used op->GetSplineObject() to calculate a position along a primitive spline (Circle, Arc etc.)
But now "GetSplineObject()" is not recognized and I can't for the life of me
find out how the get the LineObject out of a PrimSpline.

Cheers
Lennart

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

On 02/09/2010 at 07:22, xxxxxxxx wrote:

Any kindly hints?
I'm going round in circles but hopefully missing something very obvious..

Cheers
Lennart

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

On 02/09/2010 at 08:04, xxxxxxxx wrote:

There is an example in the R12 COFFEE docs. You can directly pass the spline primitive BaseObject to the SplineLengthData::Init() method.

little example:

  
var op = doc->GetActiveObject();  
  
var sld = new(SplineLengthData);  
sld->Init(op,0);  
println(sld->UniformToNatural(0.4));  
println(sld->GetLength());  
println(sld->GetSegmentLength(3,4));  
sld->Free();  

cheers,
Matthias

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

On 02/09/2010 at 08:11, xxxxxxxx wrote:

Ouch, that hurted... :)
To much to play with and to little sleep :)

Thanks Matthias

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

On 02/09/2010 at 09:03, xxxxxxxx wrote:

No, no, wait….
As I wrote in the first post, I already use that to get the float
-along- the spline.
I need to get the position in space, the vector.

It works for editable splines, as before, using op->GetSplinePoint(float,0))
It doesn't work with Primitive Splines (Circle, arc etc…)

In R11 I get the real spline by op->GetSplineObject().
In Python I can use GetRealSpline().

So what I don't get is, how can I get the RealSpline behind a Primitive spline in R12?
It differs from before and I'm not able to find the solution in the SDK.

Cheers
Lennart

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

On 03/09/2010 at 01:18, xxxxxxxx wrote:

Oh, I see. Looks like this was removed with R12. I have to ask the developers if there is a replacement.

cheers,
Matthias

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

On 03/09/2010 at 06:20, xxxxxxxx wrote:

oh,oh, please let us know if it is actually removed!
Makes a big difference (slowing down expressions doing Make Editable ghosting)

Keeps my fingers crossed...

Cheers
Lennart

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

On 06/09/2010 at 09:22, xxxxxxxx wrote:

I cannot confirm this - in R12 the following code works with parametric splines without a problem? Can you please specify what exactly doesn't work?

var op = doc->GetActiveObject();   
  
var sld = new(SplineLengthData);   
sld->Init(op,0);   
println(sld->UniformToNatural(0.4));   
println(sld->GetLength());   
println(sld->GetSegmentLength(3,4));   
sld->Free();   

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

On 06/09/2010 at 11:12, xxxxxxxx wrote:

Hi Philip.
That is the same answer I got from Matthias but the problem remains for me.

I need to get the position -in space- as a -vector-.

I simply can not see how the example would give
anything but the float along a spline.

This works for a editable spline, a point object, using:

var vectorpos = op->GetSplinePoint(0.4,0);

But as I wrote it does not work as before with Primitive Splines
like Arc, Circle Flower Object etc.

What I did in R11 was to use the now as it looks defunct function :

  
var prim = op->GetSplineObject();   
var vectorpos = prim->GetSplinePoint(0.4,0);   

I'm afraid I cannot explain myself more clear without repeating myself.
I really hope I misunderstand something here but I haven't got to a solution
over the last two days and this is starting to get a burning issue for many of
my tools until I can get it all over to Python.

Please let me know what's up

Cheers
Lennart

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

On 06/09/2010 at 11:25, xxxxxxxx wrote:

You're right - for point access the member function is necessary.

I've added the method GetRealSpline() for the next service update.
One difference will be that GetRealSpline does not return a copy of the spline (like GetSplineObject), but the original. It will be identical to the Python/C++ versions.

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

On 06/09/2010 at 11:59, xxxxxxxx wrote:

Thank you, thank you, thank you!!!

Cheers
Lennart

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

On 29/09/2010 at 13:14, xxxxxxxx wrote:

I know no dates can be given, but are we looking at sort of close service update?
Or could it be a month away?

Cheers
Lennart

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

On 30/09/2010 at 06:59, xxxxxxxx wrote:

Sorry, I can't give any dates or estimates when the update will be avaible.

cheers,
Matthias

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

On 27/10/2010 at 13:33, xxxxxxxx wrote:

Again, many, many thanks! Works a treat!

Cheers
Lennart