Transcripts
1. Introduction video: Of course you guys already
know what is chat tribute. It is a very famous
tool by Open AI. And of course Blender which is preceptor for the
mooting animation. But this course is how to work on blender with the
help of Chatbot. As you guys, we
already know that Blender support the
Python and chat jeopardy give us some cool
Python scripts which we finally run in Blender To
get the output like this, let me clarify that it is not a programming course
or according class. It is just how to create
the animation and models with the help
of Chap on Blender. So are you ready to unlock the Chabot potential for blender with me?
Let's get started.
2. Intro to Blender & ChatGPT: Hello guys, Selman Sim here. Welcome to the first D of Over course in which
we'll work on Blender. With the help chart put
in case you don't know, Blender is open
source free software for three modeling
and animation, which is very famous in
animation and gaming industry. To download the
software, just go to Blender Dog and click
download Pattern. In case your PC laptop don't
support the latest version, you can easily download
previous version of Blender which of course have a little bit less
hardware requirement. As per the minimum
requirement for the blender, it's need a CPU with
SSE two support, GBM graphic card and two GB graphic card with open
GL four pin three support. That simply mean your PC or laptop shouldn't be
less than ten year old. They also display the recommended hardware
requirement for blender. The question is how we will work on Blender with the
help of charpy. That is because Blender has
the support for the Python. And we'll generate the
code with the help of chart and run it in a blender to create the
animation and other stuff. But we'll start with the
hello word that simply means we'll create a cube
with the help of code. So we'll give the prompt here, give me a Python
code that create a cube in Blender, we'll run it. The chart part is automatically,
give me the code. Remember I'm using
the free version of chart. It is not a page. It is a free and
accessible for everyone. So I'll copy the code
and go to the blinder. Currently, we are in a viewport. That is the viewport
at the downstairs. We have the time line. At the right side, we
have the outliner, which indicate everything, everything contained
in a viewport. And there is a Properties menu. There is a tab for
the scripting, but we'll not go there. We'll split this window
by bringing our mouse to the corner and
drag it like that. Now we'll have two
viewport and we'll change this window
to the text editor. Click on a new button and
before running the script, we'll bring our mouse
to the viewport and press the A and delete
everything That is, because by default blender
come up with a cube. We'll place the text
over here and run it. Blender automatically
create a cube for us, it also contain the material. Before moving further,
it's time to cover some basic of therogometry
that is just a basic. If we select our cube and
click on a tab button, you'll see there are the
number of dots which create, which creates over cube and
these dots called vertex. We'll have the he
also that's mean a simple one line
with the help of two edges there will be a one vertex and also
there is a phase. We can select everything and also edit according
to our requirement, but that is not the
case currently. We'll do most of the stuff
with the help of Python Core. You may also notice that whenever we click
on a Tab button, there will be another
menu appear on a left side that is
called menu in Blander, which allow us to
edit over cube. We'll cover this part in
upcoming videos in a course. To work in a viewport, we can press the
middle mouse button and rotate it like that. If you don't have the
middle mouse button, you can do that from here. And also we can zoom in, zoom out with the help of wheel mouse mean the
middle mouse again. And we have to move tool like if we press the
middle mouse button and press the shift key, you can see that we
can move it like that and there is
a camera shortcut. Currently, there is no
camera in our scene. You can also see
in our outliner, and also there is a switch between perspective
and orthographic. Currently, we have only
one cube in our scene. We will ask Chad Chip to
create a code for us, which will create
three cubes in a line, along with three point lighting. So I have write the prompt
that delete everything in a scene and create three cubes with a little bit
different in a size. And also add the
floor along with 3.3 point lighting
of different colors. In case you don't know what is three point lighting,
we'll Google it. And that is the set up
which is mostly which is commonly used to project the
light on specific objects. Let's see what chart repute will give us on that
specific prompt. As you can see in a code that
is very easy to understand, that it's divided a code by
adding a different line. For example, that is
set up a material for cube and set up light and everything that we can easily add these codes if we have little
understanding of Python, but we'll just copy the code
and place it in a blender. We'll go there and
place the core. Let's see how it is run. As you can see, there
is an error in a code. That is why blender
is not adding a light and camera
to over scene. We'll give this error to
chart to fix the code. We will write this error
over here in a charpy. Ask them to fix the code and it automatically
fix the error. And we'll copy the
code and bring it in and bring it
to the blender. But before doing
that, I will show you one shortcut that will
very helpful for you, especially when you are placing the code
from here to there. That is, if we press
Windows Plus on a keyboard, even clipboard like that will
be appear on your Windows. That will help us to go back in a specific code
or specific part. If we copy paste, we can
go back in a history of our copy paste and select everything as per
our requirement. But currently we don't
require anything like that. We have this code
that is more than enough and we'll go there in a blender and select everything. Delete it and bring it here. You can automatically see that there are
three lights here. These are the three lights. You can see there is a
for, there is a camera. Of course, that is not
pointing quite well. We'll increase the size of
our plane by pressing the K. Let's go in a render mode by clicking the Z button
and select the render. You can see that how beautifully the cues are placed over here. Curtly we are in a cycle render, we'll go to the EV, you can still see that there is at least on three point
lighting set up for us. Let's examine a little bit
about the lighting will select the light and go to
object data properties. You can see the
color of the light and the power and go there. There is a white color light. And here is another light, which you can say orange
type of color per scene. You can see it is
looking very awesome in V and even in a cycle in case you don't know what
is the cycle and what is the V will cover it in upcoming
lecture. See you there.
3. Crafting Multifaceted Spheres with ChatGPT: Hello guys, Salman again, welcome to the second
lecture of over course. We have already learned about a three point lighting
in a previous structure. In today's lecture, we'll
add the material when I'm seeing material in blunder,
it's mean texture. For example, I'll
strike this one. I will press the Z and go to
the Render Preview button. I will go in a
Material Subsection. If I change the base
color to the red, you will see that the color is automatically
change on the cube. Let's create something unique. With the help of Chat Put, I write down the Bn creator, Python code for letter
in which create a U sphere with ten
segments and ten rings. Each phase should have
the different materials. Give me a very short code. Let's run it into our blender. But before doing that, I will select everything, Delete it. I will paste the code
over here and click on Run button at the
uphereterialionicn, test it by just clicking
on a Select button. First of all, we'll
have to select, click on a Select
button wire frame. You can see that there is
a selection over here. But the problem is every
material have the same color. That's why we are not
seeing the impact of that material
on our U sphere. We'll ask the chart, repeat you to fix the
code because we need a different color on
each and every material. I have had the problems at
the material on every face, but all of them are
the same color. I need, every face should have different color material
and don't repeat the color. Let's see what the
loop give us a loop. That's why it is changing
the material, of course. And we'll copy the we'll copy the code and
come to blender. Let's see how you have
seen that there is an error at downstairs and currently there
is no material. Currently, there is no
extra material for that. For that, we'll add another window to
copy paste the error. We split the window and I will add the info with the info. We have this value over here. We'll copy, we'll copy
this and we'll give it to the chart put and
we'll tell him to fix it. That will easily copy paste
the error in the chart putin. So I can copy again and
we'll read the sphere again. And now we'll go there and piece the script info is actually recorded
everything which we have done in a platter. We'll run the script again. You have seen that there is
the material on each and every face of over sphere. We have achieved that
with chat put code, but let's see how it looked
like in a rendering. But for that I will add a plane. I will scale it up a little bit, and I will bring
it down like that. Now what I will do, I will scale it a
little bit more. Now, I will hide the spike
clicking here and here. Now we'll go in a Ter mode. Currently we are in
a V and there is only environmental lighting in our scene that look like that. If we switch over rendering
engine to cycles, you will see there is a
realistic light of impacting. And there are fads over there. So it is different between
cycles and the cycle is a physical based
rendering engine in a blender which simulate a realistic behavior
of lighting. In simple word, it's
used a retracing for lighting shadows
and reflection. Because of that, because of realistic behavior of lighting, the cycle is very much
slow as compared to V as per V. It is a real time rendering engine which is
mostly used in a gaming. For example, if for example, we are playing in a game and
we have move over rater, there is no need of rendering extra stuff over
there in a games. It's used techniques like
Restoriztscreenphase. Reflection. Because of
that Ev is very fast, but we'll have to compromise
on rendering quality. Let's see what is
different between restorization and
redress engine. Let's Google it. We'll have a
few illustration over here. You have seen this ization. There is a camera and there
is object in front of it. It will automatically project
the image in front of it. The same technique which is
used in a vector graphic, in a trace engine. There is a camera and there
is a projection image. If we render something, we'll see the projection
image in front of camera. The pass passes from the
camera to the object and also, and also get the light from the lighting source and project
the image to this part. Like if I enlarge it, you can see that there is a
shadow because of this light. And you will see the image. You will see the final image
in a two D format like that. Before ending this lecture, let's test it by placing
the camera in our scene. I will go there and add the camera and bring
it back the one I will go there and
add the camera and I will press control a zero
to bring it over here. I will unhide the stuff to, to check everything switch. I will reduce the sample. I will reduce the samples to 32 on a Viewport and
also on a render. And I will go there
and render the image. Let's see with the 32 samples
how much time it will take to render this
specific sphere with different materials and all on every face to render this image. The cycles take a 22nd. There is no light in a scene. We are relying on
environmental light, which we'll see in
our Word section. We'll go in a EV and
test it for that. How much time it will
take to render that. With the 64 samples, we'll go and render an image
in a quarter of second. It's render over image, but of course there is a
difference in a quality. So that is why when we are using a Eve will have to
compromise on a quality. As for the animation
our concerns, we will cover that
in upcoming lecture. Thank you so much for watching.
4. Dynamic Color Animation in Blender with ChatGPT: Hello guys, Salman. Seem again. Welcome to the third
lecture of our course. In a previous lecture, we have created this
with the help of Chat P. Now we will ask chat pet
to animate these colors. And also you learn a few basics
of animation in Blander. I already have these charts
and I will write the prompt. Okay, Now animate
these colors to blue. On 250 frame mean. On frame number one, all faces have different colors. But on frame 250 colors
will turn into a blue. So I have run it and
I will get the code. So you have seen
that it is set up for the animation on 250 frame. And there is some loop, some kind of loop inside which hopefully fulfill
our requirement. So I will copy the
code and paste it here again and run it. There is a big error, big error. We will copy this error and go to charity and ask him
to fix this error. There are a lot of them. Okay. Hopefully the error is fixed and we'll copy
the code again. And it is much better to delete the sphere and delete
this one also. Now we'll bring back the
code and run it again. We are receiving
this same error over here and we'll again give it so it's actually at the key frames and it is
turning into our blue. But there is a missing part that all faces should have
different color in a start. So we will ask Chip to fix that. Apologize to us. And now we'll copy
the key frame. Copy everything, and
we'll paste it over here. Read this one, and
we'll run it again. Hopefully now we have
achieved what we want. But in a less than 50 frame, everything turn into our 250. Everything turned into below. And all other frames
are wasted, actually. So we will go in animation
section of blunder and there is a dope sheet and which is very
important for animators. And we will see
that until there, there are the key frames
which are helpful. After that, the all frames are similar. Very much similar. We'll select everything and X. Now we will go to
the graph editor. We'll change this window
into a graph editor. Again, this window is very
important for animators. And we'll select
everything from here. We'll click on
which means scale, and we'll click on
button and one axis. So we'll make it a little bit bigger and bring it
to here like that. Now everything will be changing its color
until 250 frames. Because of that,
these two windows, like the graph editor and the top sheets are very
important for the animator. For every animators,
it should have the control on a graph
editor and a dope sheet. There is a NL editor will
cover that letter in a videos. I'll click on a Home button. You'll see that there is a key frame in
almost every frame. Questions come in a bigness
mind. What is the key frame? So imagine we have this
cube on a first frame, we'll bring that over here. And I will reduce the size
a little bit like that. And I will bring it over here. I will click Numpad three to A. Here on a first frame I will, I will click on Eye button. It will appear this menu. And I will select a
location rotation scale. Which means that I'm
giving command to the blender that
save this location, save this rotation value, and save this scale value. If you want to say
what are these values, we'll go in this section,
Object property section. You will see that
there is a location, there is a value
for the location, there is a value
for the rotation, and of course, for the scales. With clicking eye and
selecting this one. We are, we are giving this command to Blender that save this value for us. It will save and turn
into this color. We will move the frame, it
will turn into a green. That means on that
specific property, on that specific value
there is a key frame in a previous or before
time. We'll go in. 250 frame and I will
bring this cube to here. I will increase the size a little bit and also
rotate it like that. And press the eye again. Location rotation scale,
that mean on 250 frame, we are giving command
to blender that save this rotation value
scale and allocation value. Of course we have
changed the location. We have changed the rotation. We have, we have
changed the scale. Now if I play the timeline, you will see the bypass cube
will bypass the sphere. Fix it like that. We'll press the three button on a three value will bring
that to something here. We'll rotate it like that. By rotating it, you'll see
the change in the color. That simply means there is a change in a value which indicate that there
is a change in a value. Of course, when I
change the scale, you'll see there
is a change here. Also, when we change the
location of x axis y, x is like that. You will see that every
value has changed. And now we'll go in a button again and I
will add location, rotation scale with
the three key frames. You will see that there is a cube that is going
from here to there. Let's see in a graph or how
it's look like in a graph. We'll go in animation tab. You will see that there are
a lot of sinks happening, but we can filter it out. We'll just first
go to Z location only by unselect everything. I will click on a
home button to see. You will see that is
on a z value there. This is the change which happen like if I drag
this one to here, you will see, you will see
the impact on the cube. If I rotate this basi
curve like that, you will also see the change in a behavior
of the animation. I can also scale this
one down like that. It is the base curve of course, which have two handles
and we have ability to change with
clicking a button. That way you will see
the impact of cube. Currently there is just, we
are seeing the location, we'll see the scale. There is a scale. I
will select this one and if I bring this to here, it will, it will bigger
in size on a z axis. Hopefully you
understand a little bit basic of key frames and in future will use these
values a lot of time. And when you will practice it, you will start enjoying it. If you have any questions, feel free to ask me. See you in the next video.
5. Pushing the Limits: Hello guys. Salman again, welcome to the fourth
lecture of over course in which we'll discover a
few basic of animation. We have already
seen the key frame, but we'll see the shape
keys and a little more. And we'll also try to achieve the animation with the
help of Judge Pretty. We have this cube. I
will press the X key. And dirt, I will bring this
one over here, the sphere. This is the sphere. So I
will go in Data Properties. Here there is a window
for a shape keys. I will press the plus button. That means it will
save the basic for us. That is the basic shape key. I will press it again. Now we'll have the value, maximum and minimum range. Also, I will select this key, Shape key, and go
to the added mode. Will select the face selection. I will select these
four shape keys and press the key to extrude. And when we press the tap key, you will see that sphere
will come back again. Now if I bring that to here, this value to here, you will
see the magic of shape key. We'll animate this
with the help of key frames we have already learned in the
previous structure. I will press this button
to add the key frame. You will see the color and
there is a keyframe on a time line also on a 50 frame. I will bring this one here
and add another key frame. From here to here, there
will be a animation. We'll try to achieve this
with the help of chat Zep. Let's chat jeopardy. Decide what object
you want to create. For us to understand the
concept of shape keys, I have write down the prompt
Rita Python code which have the shape keys on three objects and put the
key frames to animate. It will give me the chat
jeopardy response is to create the shape on three
objects and add the key frame to animate in
Blender using Python code. You will have the
following code. It give me the code and it's
add the key one and key two. And let's see what it's give us with the help of
this code in Blender, I have already set up these. I will play the code would
relieve the previous one. Actually, we will select
everything at let. Let's run the code. Nothing happen, It is
not creating anything. Will have to select
the cube or anything. Any object. I will select this one and press
the play button. You will see there is an error. You already know the process
how to fix this error. Take me around 5 minutes
to fix everything. Actually, chat is
not smart enough to create the object by itself. I will have to give them a little scenario that you'll
have to create the sphere. And let's see what kind of
shape keys they have created. There is nothing over here. Nothing over here. Also, Charity actually
added the shape keys, but there is no movement
against the Shape keys. They have to assign it. We'll tell them After
fixing everything, the blender has added a shape key to complete
object, which is not needed. We can achieve that
with the help of scale. Also, that is why I'm explaining everything aptly
like a little child, you will have to
train everything, train your scenarios to
have the code results. Currently, it is animating
with the help of shape keys. You can see it like
that, but there is nothing on here
on a second shape key it's leave everything is give us the code
but leave everything. There is one scenario that
you will place that ask me the question until give me the final result.
Will tell them that. Give me the five questions, ask me five questions before
giving me the final result. So that is the good approach
to get the best result. See you in the next structure.
6. Building the Solar System Animation with ChatGPT: Hello guys, Salman. Seem again. Welcome to the fifth A
of our course today. In today's video, we'll
create a solar system with the rotating stars
with the help of chat put. But initially when we
give prompt to chat put to create the solar
system of five planets, it suggests me to
install the Pip library, since from Blender 3.0 the python Pip library
comes by default. So we can enable
it with this code. This is for Windows ten user, and if you're using
any other version, you can use that code. I will place both of
them in a description, but before running that code, I will suggest one thing to
download the Python also. So we will run this
code over here. Before opening that, we will
go in a window step and open angle system control that's allow me whatever going behind the script to
install the library. We have the code, we'll
place it over here. And copy it from this
one. Copy from this one. I will install that one
and I will see that it is already already
installed in my computer. Doesn't need to install it, otherwise it will
download it for me. So it's become red
because it is already installed in Mica and also
Numpy also installed. After doing that, I
have one more idea, to place the glowing
orbit around it. We can achieve it with the help of animation notes in
a previous version. But since in the
latest version we have the geometric notes
and when I ask chat to make the code
for the geometric notes, it's come up with the
code of animation notes only because the free
version of Chat put only recognize Blender 3.0 And
you'll have to aware of that in 33.0 There is
no geometric notes. Even I have run the code
without the geometry notes. Here is the result. You can see like currently we are
in a render mood. If I go in a solid mood, you will see that
there is one sun and these planets are
orbiting around the sun, which is a picture
of some solar system around the universe. We don't know. We
have hundreds of, we have thousands
of solar systems. And likewise, they also
adjusted the speed. Let me bring the code again. You will see that
there is a radius of the planet and the
distance of the planet. We can adjust it. Also,
there is a planet speed. We can adjust all of even, we can adjust the color
of these planets by, by changing the RGB
values over here. But anyway, this is not giving
us the accurate solution. So what is the solution? We'll try to use it. Other AI available in a
market in a next route. Yeah.
7. Google Bard V Chatsonic V Bing Chat: Guys Selman again, welcome
to the 650 of our course. Today we will test three
I tools for blender. Like will give same prompt to all three tools and let's
see how they respond. The first one is Google Bard, and the second one is Chatsonic. Third one is being Chart, which is very
similar to Chat Put. The results are very
similar to Chat. Let's see how they respond and let's compare
all their results. The prompt is, write a
Python code for Blender, which create a grim
with 200 cubes of different size and also all
these cubes animating slowly. Okay, we'll copy the prompt and let's see how
Google Board respond. It is come up with a
very short script. But the good part, the Google Board already
break it down into the several parts
to understand the, to understand the code if you
have some interest in it. But currently our area of interest is to
check the outputs, copy the code, and go to
Blender and paste it. Over here it is
creating 200 cues, but that is not a Gremal and also these are
not animation. So that is because
there is some error. So give this error to the Google Board and
tell him to fix it. We'll give the line also, for example, like that. This is the error for the
patter understanding. We'll give this one this line and tell the Google board
there is a error in this line. It is very similar in charge, but we'll have to figure
it up like a babies bar is giving us some reason and
here is updated code, copy it and try. But before doing
that, I will delete everything because otherwise everything
will be overlapped. So again, same error. The same line will give this
error again to Google Bar. So I have given some specification
that I'm using Blender 3.6 and there is the error, this time I'm not
giving him the line. And let's see, it
will come up with a fixed code or not as
compared to chat chip. But it is not working. It is not fulfilling
our need actually. So we'll run it again. And same error again. So whenever I give the error
is saying you are right, there is still an error that I don't know. You
will have to fix it. Google when you are
claiming that it is the most powerful
generative AI. So why not? You are fixing anything
before giving me the code. So that is the question. Okay, still there is error. It is actually
creating 200 cubes, but currently the Google Bar
unable to fix this error. And I have tried so many times. Every time I'll try to fix it, come up with a little
changes in the code, but still there is an error. We will leave Google
Board and let's try chats. I will go there. There is some section
that is called, include the latest result
from the Google data. I will put that here and
write down this one. Let's see how it's respond. I think it is
creating something. Chason actually has very
similar results To chat rebut, we will delete the debris of Google Board places
the code here it is, actually created grumble and there is no animation
involved in that. And there is a error, of course, it is the first fry, it is added to the key frames, but still there is no
animation on any cube. You can see it from here because of error,
because of the error. And let's give error through Chat Sonic and try to fix it. It's change everything but also the render part which
is not required by us. We'll copy the code and we'll go there and
delete everything. Let's delete this part. We need it and run it. It is adding the
crimble without error, but there is no animation. Let's see. You can see it. There is a crimble, but
there is no animation. So we'll tell the chats
to fix the animation. They have added the key frames, but there is no animation. Again, let's try one last
time to fix the code. It is come up with
the animation. You can see here is
the result of chats. We'll go there because
the speed is very fast. We'll go there and place the 1,000 set the time
line to 1,000 frames. And select everything.
Select everything. Bring this one to here. After that, you will see that there will be a
very slow motion. That is what I need. Okay, it's great. I think chat sonic results are pretty much better
than the Google Board. Let's strike the final result
with, with the Being chat. The famous Being Chat. Let's go there and give him the same prompt.
Here is being Chart. I'll click on Try Now button and now I will give
the prompt here. They have few types
like the Creative and balance by default
is selected with the balance I will go with there as compared to other two being
chart is pretty much slow, you can say is pretty much slow but is also giving me
the links to learn more. We are here to test it. Actually, let's test the result. Create everything from here and less Randy code It is
creating something but there is an error
in the line so we'll go and tell them to fix it. Hopes are very high because
pink is using a chaptmdules. Let's see how it works. It is creating some grim bless, pretty much very
impressive results. But there is animation
only on location. But, but we need animation on
scale also as per rotation. If we add the animation
for the rotation, it is not giving us the
feel of the grim ble. So we will ask being
to fix this up, it is very impressive actually, but they are very scattered. That's why we are not
getting a feel of crimble. But anyway, being results
are much better, much, much better than
the Google bard. And finally, if we compare
it with the Chason, both are very much similar. But I think as per today's test, the winner is chats. We have tried the AIs, Let's try the paid one. The famous one is a
chat 54, but net.
8. Driver Blender with ChatGPT Plus: Hello guys, Salman the same. Again, welcome to the
730 of our course. Today we will test chat
part plus or chatty four. So let's give the challenge to chat part and see
how it's respond. So I have read down the Pronta blender script that creates 1010 x grid of cubes
that wearing the color mean the random color include the cube that
dramatically influence the color vertical positions of other cubes in a grid based
on the distance to them. The cubes that influence
will be named Changer cube. What are the scenario
that we are saying to chart at 10:10 x grid? And there should be
one changer cube. Whenever we move
the changer cube, there should be some
changes on a grid. We'll copy the script
and paste it over here. Go and run it. It is 100 cubes and let's
see there is an influence. There is no influence of color. Let's go to the
layout section and check there is a driver. There is no driver on all cubes. Let's specify it because to achieve this kind
of functionality, Blender has to add the drivers on all
of these grid cubes. After explaining
something, Chatty come up with another
stripe plus run it. You can easily see that
there is a influence. Here is the influence of color and here is the influence
on the location. Also test it in a layout
section and enjoy it. You will see that if I
move this cube anywhere, there will be a
change in section of, there is a change in
a section of colors. There is also a change in
a location of these cubes. You can easily spot it out. But before going further, we'll tell them to
rotate these cubes whenever the Ginger
cubes come near to it. Let's see how chat
respond to that. My prompt is code is
working fine then cubes changing its location whenever changer cubes
move near to it. But I want extra
functionality of cube should rotate on Y axis. Based on same scenarios. It's come up with the code I told them to give
me the updated code. Copy this and test it. I will go in a scripting
section and we'll go there and let's see if there
is a clean, no cleaner. We'll relate it by our self
and let's script again. Chat come up with a
beautiful response. You can say that whenever
I bring the cubes, bring the cube over here. You will see that there is
a change in the rotation. But I feel that the
influence radius of the cube is very huge and
it should be changed. I will ask the chart jeopardy again to change the
influence of these cubes. It is come up with the new code, so I'll copy it and paste
it in a scripting section. Again, you will see that now
the influence area is good, the colors are changing and
everything else is fine. As per the explanation, these cubes are
control with the code. That's why it is rotating. But if we want to create
something similar, if we want to create something
similar, it is possible. With the help of driver. For example, I will add a monkey head and bring
it here what I want, this monkey cube should rotate. Whenever this cube move, what we'll do will
go there and add the driver on the y axis. Right click, Add driver, that is driver
properties window. We'll go there and select this
one the driver has added. Now if I go there, you will see that whenever
I move this cube, the monkey head
automatically rotate. That is how we can
achieve it manually. So again, little explanation
for the driver side. If I click on added
driver window, the window will come here, you will see that there is an expression that
we are plus 00. That means whatever the
location of the cube, it will rotate with the
help of these numbers. For example, in expression
section I add the frame. Now it is not
depending on the cube but depending on the time line. Whenever we move the time line, our monkey head will be rotate. The drivers are very interesting
part for the animators. D one thing is left, that is the driver editor. We can see it all
kind of drivers. Over here there is a
modifier section in which we can add the modifiers
like the noise modifier, which is mostly helpful
for us whenever we want to change the location
like something noisy in a part, in a graph. We can explore this
part in the future. And there is also curves. With the help of these,
we can animate the psyc. We'll input the audio based on the graphical representation of this audio blender will automatically give
us the lip sync. We'll try this kind of stuff in the future as per my
reaction on chat jeopardy. It is giving us
some better results than the chat jeopardy. But it still, there
are the limitation that the updated
API is still 2021. And we'll have to figure out many things
manually because of that. Like if you want to urinate something which is
released after 2021, it is very hard for you to Nate with the help
of these scripts. So hopefully you
enjoyed the lecture. In future videos will try to create whole
meaningful video, full animation, with the
help of chart party script. See you in the next lecture.
9. Blender 3D Databar Animation with ChatGPT: Okay. Salman, Again, we
have already learned the basic of how to work
with the help of Chad. Put, now it's time to create
something meaningful. But step by step, to do that, I will write
down the prompt over here. So it's a very simple prompt. Write a Python code in Blender, which create a 30 bar chart
in Blender for six months. Okay, here is the code, Copy it and it in Blatter. It's automatically
create a bar chart, but there is no display
of texts of each month. First, tell chat
tributary to add the text. It's very simple. I have to tell the
chat tributary to add first six months as text. Also with that I'll just
copy the script again. Add it has the own cleaner. Don't have to clean
the scene by or self. I will run it and you
will see there is some added or there are some text but is not
visible. Where are these? It is very small
like it is added, but it is very small. So it's time to sell chat trip, increase the size of text
and extrude it a little bit, even though we can do it by
our self just by scaling it. But we want to create
it with the help of code because I want to
create some animation. It is good to have
from the code, the code is done, we'll
go there and run it. You can see that it is readable
in front of every object. Now I will tell chat, add some random color to
each object, to every bar. You can see there is no colors. But if I go in a material previous suction,
there are colors. Now we will add more data
against every month. So the prompt is, add some
amount in UST every month. And cube size should be as per the amount. As
per the amount. I'm also asking the question
to understand because it is very simple or maybe there are some mistakes,
grammatical mistake. Let's see how it include the
Maliy amount For each month. You have to modify the height of each bar to represent the
specific amount in UST. Amazingly, it's understand now. Understand much better. The, another surprise
is still no, I haven't got any error. It is adding the amount, but these are inside the cubes. So you can see that
there are the amounts, but all amounts are
inside the cubes. We can see it by going in
a wide framed section, you will see that
there is the amount, but all of the
amounts are inside. So let's fix it. Let's fix it with
the help of Charter. So after running our code, you will see that the
amount come outside. But still, it is not on a
perfect location anyway. But I think it is the time
we will tell chat trip to animate an animate the bars. Let's see some animation
is added or not. These are the animation. You can see that the
animation is actually added. Text is still visible
from the top, but what we want, it
should be like that. It is 90 degrees. Yx is also. We will communicate
the stuff to chart. Also, you can see that all
animation starts at once. But what we want, each graph should be
animated separately. The size of each graph
should be bigger on as x. We will copy the
code and we'll go to the script section
and paste it again, it's better to clean it up
before stating the script. Now things are
looking more better. You can see we'll go there. Yeah, it is much better. The thing has to communicate is that the text or the data of each individual power should be hidden before starting
of the animation. We'll run the code again and
go to the layout section. Text only appear after the
completion of all animation, but we don't want like that. It should be visible after the individual bar has
completed the animation. Before the next bar
starting the animation. There should be some delay text and the other data
should be added. Let's see how it's respond now. Everything is fine. What is required now is there should be some
plane at downside, we can add it manually. Like for example, I will go in a match section
and add the plane, scale it up like that. You will see that it
is looking like that. But still, the problem is, before starting the animation, these colors are visible. That is because the animation, the scale of each animation
starts with 0.05 on x y axis. We'll start, start it with 00. That means if there will be
a 00 over here like that, only see this small
lot that will not visible in a render
section of over animation. It's time to run
the script, okay? Unfortunately everything
else is added. But it is coming like that. You will see it
is a good effect. But the problem is
it has no material. Absolutely. Fix one stuff
and destroy the other one. You'll ask Attribute to
add the materials, please. My prompt is where is
the random material? Everything is fine. The only stuff we'll have to
add the plane underneath it. We sit a plane as
axis like that. At animation at frame
like 500 early, we will write 550
like that over here. At this stage I will add some material to
the plane attorney and give it a base color black. Everything is visible like that. If I place the animation, there are some
visibility over here and we can hide the
stuff at the plane. If we can hide everything. And before coming outside, currently in this lecture, we have created
this animation and the data is actually
integrated inside the code. But what if we want, this data should be
integrated by over self. Like if we want to
edit this data, we'll have to go to the
code and add it over self. But it is not like that. We will input files, some CSV files and plater
will automatically animate from the data is
given from the CSV files. For that we will create in our next structure.
See you there.
10. Automated Data-Driven Bar Animations: Integrating CSV Files in Blender: Salman, seem again. We have already reached to this point where chat
jeopardy is given us the code which is generating
this kind of animation. In today's lecture, we will told a chat party to create
this animation, but with the customized input. That means we will add some
specific CSV file or Cel file to input the data
and the number of bars which are creating
in the animation. Here is the last
chat we have did, and now I will write the prompt. My prompt is, instead of
getting a data from the code, the input from CSV
file and number of powers is equal to the number
of entries in the sheet. Ask me the question if
you haven't understand. So let's see what
is the response. So first, let's give us the
layout for the CSV file. And we can create
the CSV file in a Google Sheet or in a
spreadsheet, or even a Cel. It's totally up to you
that which tools you use. So here is my file
and I will click, click on File, Download and Download CSVs, give me the code. But I will have to
replace my destination like the folder or the directory which
contains over CSV file. I will have to paste
that address over here so Blender can read
over CSV file. Let's run the code as
has default cleaner. And hopefully it will give
us something it is giving us but it is not clearing
the previous one correctly. Here is the amount we will go in a layout section
and see in a detail. Here is the amount that is the same amount I
have put inside. And here's the second amount
and let's see the animation. Here are the animation and
everything else is fine. The only thing is the amount
of bars are not correct that let's test it again because maybe it
has not cleaned. Well, we'll go in, select everything, dis the
plane, and delete everything. And let's run the code again to check how many bars
it is creating. It is creating 3 bars as the
default cleaner is working. The only work if
these things are not because the on the
time line at the first, that's why it is not
showing us like that. It's time to test it
with like nine months. Now I have created this
for the nine months. The amounts are totally random, There are some very small number and there are some big numbers. Let's see how it's performed. Now, it is not
required to change the code because we have
replaced the CSV file. Let's run it again. Let's run the code again and check it is working quite well. You can see impressive
result with the help of CSU. Here are the animation. You can see, you will see that there are the animation here. All these these things are still not looking
good. I don't know it. Chad jeopardy is not
understanding these matters, and it is much better to hide
it like before appearing, It should be hid under,
under the plane. It is much better with
all these solutions. And also there is
a possibility to do the totally custom animation with the help of these courts. We will see next and
very small lecture.
11. Incorporating Image Inputs from CSV in Blender: Salman Sam, again in a previous. Sure, we have improved over par mission with
the help of CSU. But in today's lecture we would take further input like in the form of images or
PNT Pac, any format. With the help of CSU. We'll display these images on the part and that's help you to finalize over par enemies
without wasting further time. Let's give it my prompt is, take the input of images in a CS file from the local
directory and display on the top of each park, the core. Now we'll have to change over CSV according to
our requirement. Like before we have the
month and the amount, but now we will add the images
for better result or it the mystic we will j to
give us the sample CSV. So here is the sample. Now it's time to build
our own CSV file. Very similar to
the previous one. There is a month and amount, but at the images Se we'll
have to replace our own image. So Blender will import
that image from our Mba. As for test, I have
download few images, few flags like no in
a property section. Copy and also copy this one window as I have
told earlier, like that. And also again, we will paste Windows again
with the name, so that way we will
have the complete link. And now we will replace
that link again. Now we just need to have the images name
with the extension. We will replace that also. Our sample is fine. Now we click on Download
button again and go to S five. We don't have to
replace that one because we have already given this link in our previously and chart Deputy
ticket deducted that. As you can see here, there is a leak of our CSV file. We'll just copy the
code and let's just inland it is creating something here you can see
to check it much better. We can go in the lab section and go at the plane like that. If you see there are
some place and if I bring them out and go
to material section, there are materials on
the top of each bar. We don't need that. We need
them on the top of bar, but with a 90 degree
rotation of X axis. That way our image
will be displayed over here with very few changes. We can we can do it manually, but we have taken the help
from the Jack jeopardy. And let's run the code
and see or results. We can go in the layout
section and go to plan. As we will add some material like
the black material and go in our materials,
there are the images. The other one is inside here and still it is not
visible outside. We can easily fix these
kind of locations by bringing them out or with the help of some
changes in a core. But good uses a very
talented artists. Mr. Jet has already created
something amazing for us. We will bring code and dear CSV to have the
chat board mission. So there is a sample file, we'll have to save it as a
CSV and Storia double data. You can replace it with
the original data. There are many sources
you can get it from. Chad Jeopardy, there
are a few users on. Also likely, you can get very
good data from the Storia, from where you can
extract the data. So the CSV file is ready. We have saved it
will go in a code. We will have to
replace two sections. Number one is for the CSV and the second one is the 40 font. If you like the aerial board, you want something else, you can easily control it
With just replacing the link, I'll let everything
and you run this code. But before doing that
you will have to add the camera because
it is automatically create the camera
animation for us and disco, here are the results. We can't see anything. But if we go in a
layout section, press zero is a camera view
now ready to see them. So the complete
adding machine is created with the
help of this code. So that is all for this lecture. Thank you so much for
watching See You. Okay.