PRIM_CIRCLE_RADIUS

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

On 25/08/2003 at 13:04, xxxxxxxx wrote:

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

---------
-- how can I retrieve the simple radius of a spline object.
"PRIM_CIRCLE_RADIUS" (!)

help is greatly appreciated.

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

On 28/08/2003 at 00:08, xxxxxxxx wrote:

Mmh, frankly I have no idea, what your are asking...

Maybe you could elaborate your question a bit more?

Kabe

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

On 28/08/2003 at 00:53, xxxxxxxx wrote:

thanks for your reply,
I have a spline object -- a circle ( --> used for an extrude object). I have dozens of expressions applied to objects which ideally all relate to the size of the circle object. Yet I'd have to change vars in all exp.-- which is no good!

and now the question -- in slow:
-- how can I retrieve the radius of a Circle object?
similar to 'a=vObj->GetScale...'

in SDK is mentioned "PRIM_CIRCLE_RADIUS" (!) as a container ID, however I don't get the clue how to use this information.

a global variable (e.g. var Rad=10), if possible declared in one expression to which all other exp. relate to would help too, however I miss the information how to declare a variable globally.

help is greatly appreciated.
mk

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

On 28/08/2003 at 01:06, xxxxxxxx wrote:

You have to get the container of the object with "var bc = obj->GetContainer()". Then you can get the value with "var r = bc->GetReal(PRIM_CIRCLE_RADIUS)".

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

On 28/08/2003 at 01:54, xxxxxxxx wrote:

thanks for the quick response!
I inserted this code:
...
var bc, r, obj;
...
obj=vDoc->FindObject("Circle3");
bc = obj->GetContainer();
r = bc->GetReal(PRIM_CIRCLE_RADIUS); /*errror message*/
...
'r' would be the var to deal with but it doesn't work:
"Member not found"

-> and I surley have a Circle Object 'Circle3' in the object manager...

I'd appreciate your reply
mk

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

On 28/08/2003 at 04:00, xxxxxxxx wrote:

Oops, I guess GetReal() is called GetFloat() in C.O.F.F.E.E.

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

On 28/08/2003 at 05:22, xxxxxxxx wrote:

thanks very much,
-- that was great help!

mk