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

    LayerShaderLayer safe to "kill"?

    Scheduled Pinned Locked Moved SDK Help
    7 Posts 0 Posters 528 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 13/07/2010 at 11:08, xxxxxxxx wrote:

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

      ---------
      hi.

      the LayerShaderLayer parameter LAYER_S_PARAM_SHADER_LINK is "read-only" which is too bad really. nevertheless i can delete a BaseLink by setting the parameter like this:
      layer- >SetParameter(LAYER_S_PARAM_SHADER_LINK, NULL);
      this is dirty, filthy, bad style, i know, but can it cause problems?^^
      the result is, the BaseLink is deleted and in place of the deleted layer there is now an empty folder.
      i could live with this rather than totally discard my little plugin, as there seems to be no way to modify textures and shaders in a layer shader.

      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 16/07/2010 at 17:12, xxxxxxxx wrote:

        Maybe copy the contents from one layer, modify it as you wish, then insert it as a new layer and delete the old one? Just a quick guess.

        Cheers,
        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 17/07/2010 at 03:35, xxxxxxxx wrote:

          hmm, i want to replace and or delete layers and i guess modifying them will keep being the problem, for the only function i need is setting the link, which is read-only.

          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 17/07/2010 at 04:47, xxxxxxxx wrote:

            that's what I mean. Create a new layer with a new link, delete the old one.

            Cheers,
            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 18/07/2010 at 22:16, xxxxxxxx wrote:

              i don't think this is possible, as seen here:
              https://developers.maxon.net/forum/topic/4557/4340_insert-shader-under-layershader

              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 19/07/2010 at 01:13, xxxxxxxx wrote:

                Originally posted by xxxxxxxx

                this is dirty, filthy, bad style, i know, but can it cause problems?^^

                At best it shouldn't crash Cinema but use it at your own risk.

                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 29/07/2010 at 03:35, xxxxxxxx wrote:

                  hi,

                  thanks for your replies. i have to live with this then and will do some more testing to see if it causes problems.

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