Maxon Developers
    • Downloads
      • All Downloads
      • Cinema 4D Python SDK
      • Cinema 4D C++ SDK
      • Cineware SDK
      • ZBrush GoZ SDK
      • Cinema 4D Python Examples
      • Cinema 4D C++ Examples
      • Project Tool
      • SDK Database
    • Documentation
      • Cinema 4D Python SDK
      • Cinema 4D C++ SDK
      • Cineware SDK
      • ZBrush GoZ SDK
    • Forum
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Forums
      • Overview
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • News & Information
      • Downloads
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Register
    • Login

    Call GetContour From a function & DDescription?

    SDK Help
    0
    1
    45
    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
      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