How To Use Chatgpt With Blender (Step By Step)
4K views
May 11, 2024
"Unlock the power of AI-driven creativity with our step-by-step tutorial on 'How To Use ChatGPT With Blender'. Join us as we explore the seamless integration of ChatGPT, an advanced language model, with Blender, a versatile 3D modeling and animation software. Learn how to harness the synergy between these cutting-edge technologies to generate realistic and engaging dialogue for your 3D animations and scenes. Whether you're a seasoned Blender artist looking to add dynamic storytelling elements to your projects or a curious enthusiast eager to explore the possibilities of AI in design, this video provides clear instructions and practical examples to help you unleash your imagination and elevate your creations to new heights."
View Video Transcript
0:00
How to use chat gpt with blender hi guys welcome back to another video and in this video i'm going
0:05
to be telling you how you can use chat gpt and use it with blender in a step-by-step manner
0:11
so having said that let's just jump into the video so first things first what you're going to do is
0:15
you're going to download blender it's very simple you just simply click on the download button over
0:20
here and just choose your installer as you can see we have windows right here you can also download
0:25
it for mac os linux steam or you can go with the source code it depends on you and once it's
0:31
downloaded install it and open it up so i have it installed right here so i'm going to go ahead and
0:37
open it up okay so as you can see i have my blender open right here as you can see that we
0:43
have a cube in the middle now how this is going to work is we're going to go ahead and open up
0:48
chat gpt right here and we're going to ask it for different codes and we're going to implement those
0:53
codes within blender so we'll write over here can you please design 10 cubes in python for blender
1:02
like so and we'll hit enter and give it a couple of seconds for it to load up and once it's given
1:08
us the code we will go ahead and paste that code within blender all right so here we go so this is
1:14
the code that it's generating right here let's wait for it to you know complete it all right
1:19
here we go so this is the code let's go ahead and copy it and now we're going to open a blender
1:25
all right we have ourselves this cube right here what we're going to do is we're going to right
1:30
click over here yeah right click and then move down or click on delete it should be deleted
1:36
first we got to select it sorry now let me go ahead and there we go it is now deleted now what
1:42
we can do is we need to click on this button called editor type over here you will find it right next
1:49
to the search bar right you click over here and over here we have general animation scripts and
1:55
data what you need to do is you need to find this one right here called the text editor click on
2:02
text editor and we click on text and we'll click on new we can also open it up if we already have
2:08
it or you can just simply click on new or you can click on new this button right here we'll click
2:13
on text we'll click on new and right here we'll paste the code that we have you can go ahead and
2:19
type it as well if you want to then we click on the text button and right here as you can see we
2:25
have a new command called run script its shortcut is alt plus p right so we just simply click on
2:33
run script and boom there we go as you can see we now have 10 blocks right here uh can i move it
2:41
right here one second there you go as you can see we have 10 blocks right here uh 1 2 3 4 5 6 7 8 9
2:52
10 so 10 blocks and over here we can see them as well now what we need to do is simply as that next
3:00
what you can do is you can maybe add some more stuff or ask the chat gpt to add more stuff to
3:06
it maybe you know 11 cubes for that you come over here and you will see number of cubes is 10 maybe
3:13
we increase it to 20 right and then we just simply click on text and run script we have 20 cubes
3:20
maybe we can even have you know spheres as well so let's go ahead and actually uh you know ask
3:28
chat gpt to design us some spheres as well design 10 cubes instead of 10 cubes we'll say 10 spheres
3:36
right you could even go with circles but i think spheres are like much better so let's go ahead and
3:42
wait for it to see what it does and here we go we now have a code for spheres let's go ahead and
3:49
copy the code and open a blender right here and we'll click on text and click on new file and
3:55
we'll just simply paste the code now we'll click on alt plus p to run we should have spheres let
4:03
me actually see there you go we have spheres but we cannot see them because you know it's
4:09
they're inside the cubes maybe if we move them how do i move them wait let me select
4:16
there we go actually let me select all these different cubes can i select them there we go
4:23
let me actually select more cubes and now there we go so we just simply selected the cues right
4:31
there we go we have now spheres let me select the other cubes as well there you go now we just
4:37
simply select move we've already selected that and we'll move it right here right and let me
4:43
select the other ones as well we had a lot of cubes actually so let me actually go ahead and
4:48
delete them some of these right i'll just simply click on delete there we go we now have
4:54
and spheres cubes we can ask it to add whatever thing we want we can even ask for triangles or
5:01
circles or different shapes it depends on you so over here we have our text files how many text
5:09
file we have here we go so as you can see we have text one for circle text two for spheres so really
5:15
simple you just open up your chad gbt right here you simply enter in the prompt that you want or
5:23
the shape that you want it's going to give you the python code for it you open up blender and
5:29
you come over here and you hit the text files and click on open and that's pretty simple you can go
5:36
ahead and click on open or new and then you just simply paste it press the alt plus p button which
5:43
is a shortcut for running the script but if you don't remember just simply click on the text button
5:48
and it will have the run scripts option right here and once you've run it your shapes will appear
5:53
right here you can go ahead and see them in this column right here as well in this box where you
5:58
can see all of the scene collection so we can also add other shapes as well like maybe cone so if you
6:04
want to add a particular shape maybe not through the you know code what you could do is come over
6:11
here onto the left hand side you have this add cube button right you hold it down and you have
6:16
multiple different shapes so maybe we could add a cylinder as well and maybe we can ask chat gpt
6:21
to create a cylinder for us so let's open it up right here and maybe ask it to write a code for
6:29
us okay so we have the code right here it's pretty long i don't know so we just copied it let's go
6:35
ahead and open up blender click on text new and paste the code and press alt plus p it should run
6:45
but it didn't because module math is not defined right here okay we can't add cylinders what if
6:52
we could add like circles or maybe we can just you know ask it to reprogram it or give us the better
6:59
code for python so that we can add it manually well i added something i don't know this is
7:07
circles and cylinders and curves or bezier curve as you can see over there but yeah as you can see
7:15
we can create all sorts of shapes and sizes as well but yeah make sure you add in the correct
7:22
prompts for chat gpt to actually work and give you the shape that you want otherwise it's not
7:29
going to work so yeah keep that in mind but generally speaking we can do all sorts of things
7:35
so if you watch the video so far then you know now how this website works perfectly and how you
7:41
can use it to make money online and how you can use it to start your own business online as well
7:47
just make sure to do everything i did in the video in a step-by-step manner and you'll be
7:52
good to go so having said that that is it for this video guys i hope you guys enjoyed this video
7:58
if you have any questions or come across any problem whatsoever then let me know in the
8:03
comment sections down below and i'll be sure to help you out in any way i can as soon as possible
8:09
and also be sure to like this video subscribe to the channel and also turn on the bell notification
8:16
as you'll get notifications every time we post a new video your support to the channel means a lot
8:22
and also share this video with your friends and family members if they enjoy this type of content
8:27
and like to know how to make money online or just simply want to know how a particular software or
8:34
website works we post these types of videos daily so you don't have to worry about running out of
8:39
content you will get new content every single day so don't worry about it so having said that
8:47
thank you guys for watching and i hope to see you guys in the next video and until next time
8:52
take care and goodbye
#Intelligent Personal Assistants
#Scripting Languages
#Software