Call GetContour From a function & DDescription?



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

    On 01/12/2011 at 01:33, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:    
    Platform:      
    Language(s) :

    ---------
    Hi,
    since I'm not using a Dialong I'm wondering, if there is also the option for the interface, to set a timer or something like that.
    The Idea is as soon as a button was pressed depending on the value in the combobox, it shall create new Interface objects. Is something like that possible?

    The Other question is, is it possible to call GetContour form a Function?
    Cause this variant isn't working

     BaseContainer bc = op.GetDataInstance();
                if (ButtonCreatePressed == true)
                {
                    SplineObject bp = GenerateCircle(bc.GetReal(OBJ_RADIUS));
                    if (bp == null)
                        return null;
                    BaseContainer bb = bp.GetDataInstance();
                    bb.SetLong(C4dApi.SPLINEOBJECT_INTERPOLATION, bc.GetLong(C4dApi.SPLINEOBJECT_INTERPOLATION));
                    bb.SetLong(C4dApi.SPLINEOBJECT_SUB, bc.GetLong(C4dApi.SPLINEOBJECT_SUB));
                    bb.SetReal(C4dApi.SPLINEOBJECT_ANGLE, bc.GetReal(C4dApi.SPLINEOBJECT_ANGLE));
                    bb.SetReal(C4dApi.SPLINEOBJECT_MAXIMUMLENGTH, bc.GetReal(C4dApi.SPLINEOBJECT_MAXIMUMLENGTH));
      
                    OrientObject(bp, bc.GetLong(C4dApi.PRIM_PLANE), bc.GetBool(C4dApi.PRIM_REVERSE));
                    ButtonCreatePressed = false;
                    return bp;
                }
                else
                {
                    SplineObject bp = GenerateCircle(bc.GetReal(0));
                    return bp;
                }
    

    ButtonCreatePressed is a Global bool, I've changed the value to true in the Message Function


Log in to reply