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

    Shader Nameing

    Scheduled Pinned Locked Moved PYTHON Development
    7 Posts 0 Posters 580 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 22/03/2012 at 08:15, xxxxxxxx wrote:

      Hi all hope your all haveing a great day just a small queston regarding shader nameing in python
      heres a example of script that works
       
          shd = c4d.BaseList2D(XSLANoise)
       
      what im looking for is the same line of script but for the Terrain Mask i tryed this but did not work
       
         shd = c4d.BaseList2D(XSLATerrainMask)
       
      or is the new Terrain Mask not yet supported or is there a totaly differrent name for this after the XSLA???????
       Thank you all in advance for any insight  to this.
       
       Cheers Ray.

      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 22/03/2012 at 10:14, xxxxxxxx wrote:

        i guess it is XTerrainmask. X is the prefix for shaders and sla a relict from xl 5 times when cinemas 
        noise shaders were a plugin called Smells Like Almonds. you can always do a file search on your 
        c4d/ressource folder to obtain correct ids or namings.

        edit : from the *.res and *.h files

        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/03/2012 at 10:22, xxxxxxxx wrote:

          Thanks Devil for your reply but ive been through the .res and .h files xterrainmask is there but there seems to be no id given for it ive found all these but no xterrainmask.

          Xcolor=5832,
          Xbitmap=5833,
          Xbrick=5804,
          Xcheckerboard=5800,
          Xcloud=5802,
          Xcolorstripes=5822,
          Xcyclone=5821,
          Xearth=5825,
          Xfire=5803,
          Xflame=5817,
          Xgalaxy=5813,
          Xmetal=5827,
          Xsimplenoise=5807,
          Xrust=5828,
          Xstar=5816,
          Xstarfield=5808,
          Xsunburst=5820,
          Xsimpleturbulence=5806,
          Xvenus=5826,
          Xwater=5818,
          Xwood=5823,
          Xplanet=5829,
          Xmarble=5830,
          Xspectral=5831,
          Xgradient=1011100,
          Xfalloff=1011101,
          Xtiles=1011102,
          Xfresnel=1011103,
          Xlumas=1011105,
          Xproximal=1011106,
          Xnormaldirection=1011107,
          Xtranslucency=1011108,
          Xfusion=1011109,
          Xposterizer=1011111,
          Xcolorizer=1011112,
          Xdistorter=1011114,
          Xprojector=1011115,
          Xnoise=1011116,
          Xlayer=1011123,
          Xspline=1011124,
          Xfilter=1011128,
          Xripple=1011199,
          Xvertexmap=1011137,
          Xsss=1001197,
          Xambientocclusion=1001191,
          Xchanlum=1007539,
          Xmosaic=1022119,
          Xxmbsubsurface=1025614,
           
          so im a but stuck at the moment any ideal what the id is.
           
           Cheers  Ray

          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 24/03/2012 at 02:45, xxxxxxxx wrote:

            The X prefix is for 2D shaders that are used as Textures in Materials. Materials have an M prefix. Select a Terrain-shader (which is actually a material) and execute this script. You'll see:

            import c4d  
              
            mat = doc.GetActiveMaterial()  
            tpe = mat.GetType()  
              
            for k, v in c4d.__dict__.iteritems() :  
              if v == tpe and k.startswith("M") :  
                  print k
            

            Cheers,

            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 24/03/2012 at 12:24, xxxxxxxx wrote:

              Hi Niklas ye i agrree the terrain shader is a material but that is the old 1 thats been in cinama for donkeys years the one i cant get hold of is the brand new one that came with version 13 its the alttitude shader called Terrain Mask and shown in .res as xTerrainmask but i can not find the id numer for it in .h or .res unless im going blind lol if you can spot it many thanks.
               
              Cheers. Ray

              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 01/04/2012 at 14:04, xxxxxxxx wrote:

                You can find out the plugin ID for anything (objects, tags, shaders, materials, etc) by calling its GetType() method.

                Or even easier: Create a material, add a Terrain Mask Shader. Click on the shader to see its attributes. Then drag the shader preview (the b/w gradient) into the Python console's input field and press Return. You'll get some information, including the plugin ID:

                <c4d.BaseShader object called 'Terrain Mask/Terrain Mask' with ID 1026277 at 0x10eb41090 >

                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 02/04/2012 at 09:59, xxxxxxxx wrote:

                  Hi thanks for that one Jack thumbs up.
                   
                    Cheers.  Ray.

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