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

    GetContour & CheckDirty

    SDK Help
    0
    5
    913
    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 15/01/2003 at 12:58, xxxxxxxx wrote:

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

      ---------
      im building a spline generator plugin
      ive set flags as follows
      OBJECT_GENERATOR|OBJECT_SPLINE 
      im using the function   GetContour  to build and return a SplineObject
      this is fine. 
      however , if i use GetVirtualObject its possible to force rebuild using the CheckDirty function .This is called  on every pass to allow me decide when to rebuild.
      However , maybe this is a bug !!!
      when i use  GetContour , the CheckDirty  function is never called , so i have no way to force rebuild when i build a splineobject:(
      is there a way out of this?
       
      cheers
       
      Paul Everett

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

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

        On 16/01/2003 at 17:40, xxxxxxxx wrote:

        You can remove OBJECT_SPLINE and use GetVirtualObjects() to generate a spline. (That's what I do in Helix. I wanted to use GetContour() but it doesn't seem well suited for generators.)

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

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

          On 23/09/2003 at 19:50, xxxxxxxx wrote:

          Hello,

          Having the same problem. CheckDirty is not called inside of Spline Generators. Generator Objects require Spline Objects for input will not accept PluginObjects that use GetVirtualObjects instead of GetContour. Is skipping the CheckDirty function a bug? I have to set a tag to cause the plugin object to update. This looks like a bug, smells like a bug, hmm???

          Best Regards,
          David Farmer

          1 Reply Last reply Reply Quote 0
          • H
            Helper
            last edited by

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

            On 24/09/2003 at 23:36, xxxxxxxx wrote:

            I don't think it's a bug since it's only supposed to be called for deformers. It's a limitation of the way spline objects can be used, though.
            What generators did you have in mind that don't work with generator splines? I'd have to check Helix against those. Afaiu such a generator wouldn't even allow an Instanced spline, since that's not an OBJECT_SPLINE, but I might be wrong.

            1 Reply Last reply Reply Quote 0
            • H
              Helper
              last edited by

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

              On 25/09/2003 at 06:43, xxxxxxxx wrote:

              I hacked it, definitely seems like a bug to me. Prove me wrong by explaining why GetContour does not react the same as GetVirtualObject. They should essentially be the same. Overloading GetContour eliminates CheckDirty from being called. The GetContour function is only called when a parameter changes, not at every frame like GetVirtualObject. Seems wacky.

              darf

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