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
    • Recent
    • Tags
    • Users
    • Login

    Has c been pressed?

    Scheduled Pinned Locked Moved SDK Help
    4 Posts 0 Posters 305 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 25/01/2009 at 13:24, xxxxxxxx wrote:

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

      ---------
      Hi again,

      in my Generator object, I have functions the work different depending from if the renderer is currently working. I query this as follows:

      > CheckIsRunning(CHECKISRUNNING_EDITORRENDERING) || CheckIsRunning(CHECKISRUNNING_EXTERNALRENDERING)

      Working fine so far. I use this e.g. to reduce the amount of clones that are created in the editor, while still generating the full amount of clones when rendering.

      Now my problem: If the user presses "c" to convert my Generator Object, I also want to create the full amount of clones (like when converting a HyperNURBS, the "Renderer" subdivision is used). How can I determine if my plugin is being called in the context of normal editor display, or if it's being called because the user pressed "c"?

      Thanks for help 🙂

      Greetings,
      Jack

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

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

        On 26/01/2009 at 05:53, xxxxxxxx wrote:

        Check the VFlags of the HierarchyHelp passed to GetVirtualObjects().

        Something like this:

        > \> if(hh->GetVFlags() & VFLAG_INTERNALRENDERER) GePrint("internal"); \> else if(hh->GetVFlags() & VFLAG_EXTERNALRENDERER) GePrint("external"); \>

        Pressing 'C' results in a VFLAG_EXTERNALRENDERER flag.

        cheers,
        Matthias

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

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

          On 26/01/2009 at 09:59, xxxxxxxx wrote:

          Hm, that sounds useful. Thanks! 🙂

          Is INTERNAL renderer the editor renderer?

          Greetings,
          Jack

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

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

            On 26/01/2009 at 10:32, xxxxxxxx wrote:

            Yes, internal is the editor renderer.

            cheers,
            Matthias

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