Control a ColorRamp Outside of a Node Group (Blender Tutorial)

Sdílet
Vložit
  • čas přidán 23. 07. 2024
  • In this Blender tutorial I will show you how to control a ColorRamp outside of a node group when creating custom material node groups.
    ● Purchase the project files and support the channel:
    • Gumroad: ryankingart.gumroad.com/l/col...
    • Patreon: / 80387373
    ● Ultimate Procedural Material Pack:
    • Gumroad: ryankingart.gumroad.com/l/ult...
    • Blender Market: blendermarket.com/products/ul...
    ● Ultimate Material Pack Trailer: • Ultimate Blender Proce...
    ● Procedural Material Packs: ryankingart.gumroad.com/?quer...
    ● Procedural Material Tutorial Playlist: • Blender Procedural Mat...
    ● Timestamps:
    0:00 Intro
    0:43 Support the Channel
    1:29 3d Setup
    4:41 Control Color Ramp Colors
    13:15 Control Color Ramp Positions
    22:32 Closing
    _________________________________________________________________________
    ● My Website Links:
    • All links on my about page: ryankingart.wordpress.com/77-2/
    • Patreon: / ryankingart
    • Gumroad: ryankingart.gumroad.com/
    • Artstation: www.artstation.com/ryanking
    • Blender Market: blendermarket.com/creators/ry...
    • Sketchfab: sketchfab.com/ryankingart
    • Website: ryankingart.wordpress.com/
    #ryankingart #blendertutorial #blender

Komentáře • 85

  • @ShangFengYang
    @ShangFengYang Před rokem +4

    Thank you for your awesome Blender tutorials. I always learn a lot from them!
    My last comment somehow disappeared right after I submit it 24+ hours ago. I can not even find it in my comment history. The following is from my unreliable memory of what I wrote in that comment minus a reference link to an Blender Artists post which inspires the solution but somehow triggers CZcams's automatic "filtering".
    Actually, it is possible to control both the position and color for the color stops in the original color ramp directly using drivers without creating the masks for the color stops and mixing them afterwards.
    For the "Position" part, it is quite simple. It can be done either by your approach, or, probably a little bit more easily, by right-clicking on, say, the "Color 1 Position" field of the node group node, selecting the "Copy as New Driver", and then pasting it to the "Position" field on the color ramp node inside the group of the corresponding color stop using the "Paste Driver" option from the context menu.
    For the "Color" part, it is not so straight-forward. Directly editing the driver of the color field in the color ramp node inside the group would lead to the "driver editor" with a graph-editor-like interface. Instead, the driver should be created for individual "channels" using either "RGB" mode or the "HSV" mode of the color picker. For example, to control the color of the color stop 1 (which has an index of 0), do the following steps:
    1. From outside of the node group, right click on the "Color 1" field to open the color picker for color 1. Switch to the "RGB" mode in the color picker.
    2. Right-click on the input field of "Red" channel and select "Copy as New Driver".
    3. Press Tab to jump into the group. Select color stop 1. Click on the "Color" field to open the color picker. Switch to the "RGB" mode. Right-click on the input field of "Red" channel and select "Paste Driver".
    4. Repeat step 1 to 3 for "Green", "Blue", and "Alpha" channels, too.
    Although I personally haven't tried it, this approach should also work for the "HSV" mode. The "Hex" mode, unfortunately, didn't work in my experiment.
    By directly controlling the original color ramp, the node tree in the group could be a little cleaner in my opinion.
    Again, thanks for your great tutorials, and have a nice day!
    * The comment has been edited to mainly fix some incorrect spellings and bad grammar. Sorry about that.

  • @fahmiraza1763
    @fahmiraza1763 Před 9 měsíci +4

    Oh my God
    I don't know it's pro level or intermediate level lesson you explain like piece of cake
    Every tutorial make me stunt
    God bless you
    I just feel bad I can't help you financial just my blessing with you
    I really appreciate your work

    • @RyanKingArt
      @RyanKingArt  Před 9 měsíci +1

      Glad you like my videos! No worries, I know that not everyone can support financially. thanks for watching.

  • @TheDucky3D
    @TheDucky3D Před rokem +4

    This is insanely useful

  • @designfreedom3651
    @designfreedom3651 Před rokem +7

    This is awesome! It's one of those nodes that I always wished Blender had by default. Thank you Ryan!

  • @DavidWinstead
    @DavidWinstead Před rokem +4

    Dang man, I had no idea you drag and drop colors, huge time saver!! Great tutorial as always.

    • @RyanKingArt
      @RyanKingArt  Před rokem +1

      Glad its helpful!

    • @tuxgirl
      @tuxgirl Před rokem +2

      You can also just hover the mouse over the color, hit ctrl-c, then hover over where you want it to go, and hit ctrl-v

    • @DavidWinstead
      @DavidWinstead Před rokem

      @@tuxgirl Thanks awesome, good to know, thanks!

  • @limdoha
    @limdoha Před rokem +1

    Really impressed! The details and creative combinations are amazing. Thanks a lot!

    • @RyanKingArt
      @RyanKingArt  Před rokem +1

      Glad you liked it! thanks for watching!

  • @triple7evenn
    @triple7evenn Před rokem +3

    thank u so much for this tutorial, ive always wanted to know how to do this, but couldn't figure it out for the longest time 💯

  • @bonecoseoutrascoisas-leiri1131

    Another great tutorial. Thanks!

  • @stevemcclintock309
    @stevemcclintock309 Před rokem +1

    Awesome Tutorial Ryan, top class as always 👍

  • @abraxasseven6212
    @abraxasseven6212 Před 3 měsíci

    excatly what i needed,thank you~!

  • @heiro5
    @heiro5 Před 11 měsíci +1

    Yes! I wanted to know how to do exactly this, and here you are, breaking down how to do exactly this. Thank you, Ryan!

    • @RyanKingArt
      @RyanKingArt  Před 11 měsíci +1

      hope you find it helpful!

    • @heiro5
      @heiro5 Před 11 měsíci

      @@RyanKingArt Dude! Sir!! Incredibly helpful. When I was teaching myself Maya like 20 years ago there weren't resources like the YT tut ecology. Something like this would have been a complete dead end "guess I don't do that" kind of thing. Truly, thank you.

  • @GaryParris
    @GaryParris Před rokem +1

    Excellent Ryan

  • @Noel_FGC
    @Noel_FGC Před rokem +1

    man why do i always find these videos like the day after i need them , seriously though this is ingenius thank you so much

  • @blenderstuffs
    @blenderstuffs Před rokem +3

    Amazing 🤩🤩

  • @moonkilig3234
    @moonkilig3234 Před rokem

    Thank you very much for this tutorial, I couldn't be more happy ! My friend who use Blender was Gatekeeping this system to make his cell shading :) Not anymore !!!

  • @neyptune
    @neyptune Před rokem

    This is so helpful ! Amazing work thank you! :)

  • @cm.shirown
    @cm.shirown Před 11 měsíci

    Thanks a lot ! Great video and explanations. It opens the doors to a lot of interesting things :)

  • @phildavison319
    @phildavison319 Před rokem +2

    Thanks for this and well done for figuring out how to control the actual colours from outside the color ramp. I tried using drivers to change the colours from outside the group but just got the graph editor thing. BTW, a quick note for anyone who hasn't controlled the positions before, you must copy the data path and not the full data path or it doesn't work.
    The driver technique works for any node with a variable which doesn't have an input (e.g. the four variables at the top of the brick texture or the depth field in the magic texture). However, as far as I am aware you can't control drop-down lists such as the gradient type in the gradient texture node in this way without resorting to Python.
    Finally, congratulations for managing to explain this so well in under half an hour!

  • @ghostwarrior-ni1xb
    @ghostwarrior-ni1xb Před rokem

    amazing

  • @mattrowe2652
    @mattrowe2652 Před 5 měsíci +1

    Thanks

  • @fudge7534
    @fudge7534 Před rokem +2

    I really love your tutorials but sometimes I wish they could be a bit more streamlined and shorter
    However I must say thank you for your time and effort it's genuinely helped me out in my work

  • @uncommongamers
    @uncommongamers Před 10 měsíci

    Oh.....!
    It’s the super colour ramp

  • @belayarada3235
    @belayarada3235 Před 10 měsíci +1

    wow🤩

  • @DanielGrovePhoto
    @DanielGrovePhoto Před rokem

    Well looky there! Haha thanks for making a video for this.

  • @atenoct
    @atenoct Před rokem +1

    Thank you for the lifehack))😅

  • @cat9595
    @cat9595 Před rokem +2

    Hello sir I'm from Pakistan you are my best teacher ❤️ I love you

  • @Tiki_Media
    @Tiki_Media Před rokem +1

    Delightfully over my head, now it's just at forehead level, causing it to hurt; in a good way :-) Thanks for the added depth by moving into drivers and data paths! I found it helped to go back into the group node and in the Group tab > Inputs, set the Min. value to "0" and the Max. value to "1", so when you control the Color X Positions from outside the node, you don't "spin" the controller into crazy negative and positive values, since the control is so sensitive.
    Is there a math node, or adjustment that could be made within the driver, to make the controller less coarse and finer increments, without having to hold the shift key?

    • @RyanKingArt
      @RyanKingArt  Před rokem +2

      Thanks for the tip with the Min and Max values! That makes it much easier to use! 👍‍ Yes, I think that is possible with some math nodes. Can't think off the top of my head how to do it though.

    • @bonecoseoutrascoisas-leiri1131
      @bonecoseoutrascoisas-leiri1131 Před rokem

      @@RyanKingArt It's possible. I know I did it some time ago, but I don't remember how and can't find the file. But, you can make the slider range (it's 0 to 1) bigger, like: 0 to 1000 and, inside the group, multiply the input valu by 1000. Just rename the slider to something like "Color x Position (/1000)". It works. Not pretty, but easy.

  • @titanmoruma5834
    @titanmoruma5834 Před 3 měsíci +1

    Drivers are preserved between apended scenes?
    all time i create drivers to control, they are not transferred to other scenes.
    Again i love your tutorials

  • @beyond9thousand
    @beyond9thousand Před 8 měsíci

    is there a way to keep this consisten between separate materials? i am trying to come up with something for soft box lighting setup

  • @cncpts66
    @cncpts66 Před 17 dny

    Hey Ryan is there a way to do this with the "image texture node" allowing you to place the image selection on the outside?

  • @iaian7
    @iaian7 Před rokem +3

    In my experience, drivers will break when duplicating or reusing a node group, but using Map Range instead of Color Ramp nodes would fix this; it has actual node inputs for the start and stop of the value ramp. No need for drivers at all.

    • @RyanKingArt
      @RyanKingArt  Před rokem +1

      👍‍

    • @timsob100
      @timsob100 Před 4 měsíci

      Yes, the reason is that you are using a different material that the one that you specified when creating the node group drivers. When you start a new material it will have the name 'material'. Drop in the node group from the asset browser, delete the BSDF and connect the node group to the materials output. Now if you go to where the materials name is at the top of the window and list the materials you will see the name of the material in the node group, click on it and it will work.
      Cheers
      Lyle

  • @xolotltolox7626
    @xolotltolox7626 Před rokem

    This tutorial is greatly appreciated, but blender really needs to simplfiy stuff liek this so such an elaborate setup is not required

    • @RyanKingArt
      @RyanKingArt  Před rokem +1

      Yeah Agreed. The Color Ramp could just be updated so that it has inputs for all of the colors and positions.

  • @einselkampfer4387
    @einselkampfer4387 Před 2 měsíci

    you can export this proyect to .obj and, you see all texture right? i have this problem....

  • @BenRidgwayArt
    @BenRidgwayArt Před rokem

    Hey Ryan, I noticed this technique does not work in version 3.6. It seems that the color shows up in the node group but does not respond to changing the color. Is there another method for this new version of Blender?

    • @BenRidgwayArt
      @BenRidgwayArt Před rokem

      Lol, right after typing this I tried again and it works :) Thanks for all the work you put into these videos! You have a great way of explaining things!

    • @RyanKingArt
      @RyanKingArt  Před rokem

      Oh glad its still working!

  • @cekconi1773
    @cekconi1773 Před rokem +1

    👍👍👍

  • @Aniversity
    @Aniversity Před rokem +1

    I’m curious. Are your materials available for commercial use? And if so, would we need to credit you for creating them?

    • @RyanKingArt
      @RyanKingArt  Před rokem +1

      Yes, you can use them for commercial use, and no, you don't have to credit me.

    • @RyanKingArt
      @RyanKingArt  Před rokem

      On Blender Market, you can read more about the license on the License page.

    • @Aniversity
      @Aniversity Před rokem +1

      Thank you.

  • @StefanoOrlando_s
    @StefanoOrlando_s Před 8 měsíci

    hi, i have a problem, when i duplicate the node group, the copy dont work..

  • @TheUninstaller2000
    @TheUninstaller2000 Před rokem

    Maya has a Switch node just for this
    Im surprised Blender doesnt have it already

  • @stephanechataignie
    @stephanechataignie Před rokem +2

    Knowing that "map range" node is identical to colorramp but with more control, it is useless to go through dark data paths

  • @shadow_animates898
    @shadow_animates898 Před rokem +1

    1

  • @joelkowalski6869
    @joelkowalski6869 Před rokem +1

    Drink every time he says color

  • @AyushBakshi
    @AyushBakshi Před 4 měsíci

    blender devs gotta be dum dums to not already have controllable ramps

    • @RyanKingArt
      @RyanKingArt  Před 4 měsíci +1

      yeah it would be a nice feature to have in Blender