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

    Access the UserData of an layer shader

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 303 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

      On 22/11/2014 at 13:48, xxxxxxxx wrote:

      Hallo
      I want to change the strenght of a Texture in a layer shader ,
      also it would be nice to change the blend mode  and access the parameters of filters.
      I tried
      Def main() :
          print theLayerShader.GetUserDataContainer()
      and
      def main()
      print thelayerShader[c4d.MATERIAL_COLOR_SHADER]
      Frist return [] scound return an Error
       AttributeError: Parameter value not accessible (object unknown in Python)
      I hope some one can Help.

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

        On 23/11/2014 at 11:26, xxxxxxxx wrote:

        Hello,

        you can traverse a layer shader with shader.GetDown()...GetNext() as it is a BaseList.
        But correct me if I´m wrong, I guess it´s not possible in Python to change the blending intensity nor the blending mode.
        I wish we had a list where we can see what´s possible and what is not.
        Best wishes
        Martin

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

          On 24/11/2014 at 00:46, xxxxxxxx wrote:

          Hello,

          the layer shader's layers[URL-REMOVED] can only be edited through the C++ API. These layers have nothing to do with UserData.

          best wishes,
          Sebastian


          [URL-REMOVED] @maxon: This section contained a non-resolving link which has been removed.

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