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

    Insert Entry in Shader-Menu

    Scheduled Pinned Locked Moved SDK Help
    6 Posts 0 Posters 548 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/06/2006 at 07:38, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:    
      Platform:      
      Language(s) :

      ---------
      Hey,
      Is there a possibility to insert an entry in the Shader-Menu. So that my function is called, when this entry is activated?
      I only found the option to insert real ShaderData-Objects with RegisterShaderPlugin().

      greets

      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/06/2006 at 00:15, xxxxxxxx wrote:

        Nope, afaik it´s not possible.

        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 23/06/2006 at 04:51, xxxxxxxx wrote:

          hmm, ok thanks.

          is there another possibility to start my functions from the shader menu?
          I tried to make a new ShaderData-Object. And with this tried to get a link to the active Shader. I return FALSE in Init() that my Object is not instanciated. But then the already loaded shader is deletet...

          Or does anybody know how to get the active shader?

          thanks

          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 27/06/2006 at 00:48, xxxxxxxx wrote:

            Perhaps you could use HandleInitialChannel() for this purpose, i.e. so that your inserted shader gets the current shader as a child. See BitmapDistortionShader.cpp for an example.

            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 27/06/2006 at 01:22, xxxxxxxx wrote:

              yes, thats what i already tried.
              but i don't want my shader to be inserted.
              I only want to get a BaseLink to the current shader. And not insert my shader 😕

              i tried HandleInitialChannel() and then a DoUndo(). but after that my baselink to the shader is dead

              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 03/07/2006 at 11:48, xxxxxxxx wrote:

                It looks like this is not possible. An alternative strategy would be to make a menu plugin, or a dialog where the shader element could be drag-and-dropped.

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