Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Call GetContour From a function & DDescription?

    Scheduled Pinned Locked Moved SDK Help
    1 Posts 0 Posters 136 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • First post
        Last post