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

    GVO and tool input

    SDK Help
    0
    3
    257
    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

      On 18/04/2016 at 03:16, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   15+ 
      Platform:   Windows  ; Mac  ;  Mac OSX  ; 
      Language(s) :     C++  ;

      ---------
      Hi,

      I have an object plugin with spline child input but I would like it to only evaluate my code in GVO if the user is not moving or editing the spline's vertices. What is the correct way to do this and is this valid at all?

      Thanks!

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

        On 19/04/2016 at 11:05, xxxxxxxx wrote:

        Hello Samir,

        I guess, you'd like to speed up user interaction by not updating your generated object. While you could check for example the dirty state of the spline child, you will run into problems, as this somewhat contradicts Cinema's event system. The most obvious problem will be, that there won't be an event, when the user finishes modifying the spline. So your GVO won't be called and you won't get a chance to finally update your object.
        There may be dirty workarounds for this situation, but I'd rather not suggest these as an official solution. Sorry.

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

          On 19/04/2016 at 11:18, xxxxxxxx wrote:

          Thanks Andreas.

          I have an alternative up my sleeve already but thought I'd check first (would have meant much less work).

          Cheers

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