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

    prevent making object generator editable

    Scheduled Pinned Locked Moved SDK Help
    5 Posts 0 Posters 399 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 19/02/2007 at 16:53, xxxxxxxx wrote:

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

      ---------
      Hi,

      I'm looking for some demo restrictions for my object generator plugin. the plugin generates a polygon object from splines.

      I found out, that I can prevent rendering by reacting to the MSG_MULTI_RENDERNOTIFICATION message. But more important is it, to prevent making a "real" polygon object using "make editable" or "current state to object". Unfortunately there isn't any message incoming before C4D makes the conversion.

      Now I found out, that the thread pointer I'm getting from the HierarchyHelp pointer (hh->GetThread()) is always NULL, when executing one of the conversion.

      What do you think, is it safe to rely on this behaviour?
      Do you have another idea doing the task?

      Thanks in advance,

      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 20/02/2007 at 05:55, xxxxxxxx wrote:

        Hmm, try to check what Flag is set in hh->GetVFlags(). I could imagine that the object will have VFLAG_POLYGONAL set when converting. Just a guess. 🙂

        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 20/02/2007 at 06:11, xxxxxxxx wrote:

          Hi Samir,

          yes, VFLAG_ISOPARM and VFLAG_POLYGONAL are set. I tried to erase all flags with hh->AddVFlags(0). Although this function is named "Add..." the sdk says "Change the virtual object flags". But the call has no effect. I call the function in GetVirtualObjects(). Maybe too late?

          Where can I manipulate these flags? Is it possible at all?

          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 20/02/2007 at 06:19, xxxxxxxx wrote:

            I don´t think you need to change the flags at all. I just thought it would be helpful in checking when to return something in GetVirtualObjects or not. But now that I think about it, I don´t think it´s safe to use these flags.

            Sorry, don´t know anything else spontaneously. 😕

            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 20/02/2007 at 06:45, xxxxxxxx wrote:

              It seems, that the *baseThread == NULL check works fine. Even when trying to export the document as 3DS or putting it into e.g. a hypernurbs and convert this, the method works! I'll keep an eye on it and test it on different platforms and c4d versions.

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