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

    Shader basics [SOLVED]

    Scheduled Pinned Locked Moved PYTHON Development
    4 Posts 0 Posters 393 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 29/04/2015 at 10:01, xxxxxxxx wrote:

      Hello all,

      My end goal is to affect the color of a mograph clone (let's say greyscale values based off a clone's Y position, for simplicity's sake).  I've messed with shaders in Unity, but diving into custom shaders in a particular program for the first time is a real mind-crusher, so I'm on the hunt for some simple python shader examples to ease the passing.

      Does anyone know of any open-source ShaderData plugins (or similar) I could glean from?

      As always, thanks a million in advance : )

      PS: I don't think this deserves its own post, so I'll ask here: what's the deal with plugincafe redirecting to the page asking for my login credentials?  I don't think I have any :' (

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

        On 29/04/2015 at 12:13, xxxxxxxx wrote:

        Hello,

        actually you find a simple example shader in the Python SDK. The source code is here, the folder here.

        There are currently some minor technical difficulties with developers.maxon.net but it should be fixed tomorrow.

        Best wishes,
        Sebastian

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

          On 29/04/2015 at 12:55, xxxxxxxx wrote:

          Hey, thanks a lot, Bach!

          Oh ok, no worries (regarding the website).  I love the stormtrooper background ^^

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

            On 29/04/2015 at 15:20, xxxxxxxx wrote:

            One more dumb question before I let this thread go: can I traverse up from the shader to the material tag/object with a ShaderData plugin?  GetMain() on a BaseShader will get the material, but I can't figure out if I can get to the current object...

            Edit: Oohhh, now it makes sense--I'm just now understanding the ChannelData (cd) stuff.  I guess op doesn't work with python, so I'll only have the other VolumeData info to work with.  Guess I could just use C++ 😢

            (Mostly kidding about the crying.)

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