Unleash Video & Image Playback Power with TouchDesigner

Published: Nov 07, 2022 Duration: 00:16:54 Category: Education

Trending searches: daniel pembroke
so what we're going to do is first  we're going to take everything and touch   and delete all our notes on the network and as  we double click we are going to add a folder   and we're going to point the folder at a spot in  our computer and so I just happen to put something   on my desktop which I labeled video and picks so  I'm going to select that and it's going to show   basically uh well I didn't select it right so I  have to set video clicks and I have to click it   twice and then hit open it's going to show all my  video and my picture files within this folder and   I'm putting pictures in this for a reason to uh  that we didn't do in class but to also show you   a different example so um after a folder we  are going to right click and we are going to   the a select so we have this two component of dots  and this is basically giving our folder and our   select as we change and here we're also going to  include first row so this is our path right here   which is basically showing our name and our path  are zero point in in this dat and then our files   obviously underneath so here's the folder and this  is going to be our selection tool for the folder   and then we're going to select index so  by index and it's showing again there's   seven items in here with a zero point  being one or the starting row being zero   so what we did in class two is we also added a  a clock and so we took a clock and we picked up   the actual seconds from here and we deleted a  bunch of stuff just as an example but what I'm   going to do is I'm going to then right click  on here again I'm going to use a select and   instead of deleting all that I am just going to  select the seconds so we have our section right   here and we have our clock and we're selecting  our seconds and we are going to put a limit so now our limit is going to be   trying to eliminate what we have in this folder so  how many files we have in this folder right and we   have seven right now and and part of the thing I  didn't cover in class that I want to cover here is   when you if if we put in our limit right here and  we change this to a loop and and we wanted to say   um here is the different files that we have in  here and this is like the starting point with   our minimum and maximum and we don't know exactly  what that Max is so we add another folder or we   had another video uh into our folder and then  you know this is going to change right because   the folder is always going to be actually what  we've probably asynchronous update it's going   to update anytime we add a new file in there  right and so what I'm going to show you too is   if we right click on here and we select chopped to info it gives us this extra box  over here and it looks weird at first but   once you drag it it will just pop in there and  this extra box is giving the info of all the   information within this folder right so it's kind  of like a breakdown and it's showing you hey the   number of roles number of columns the cook times  the frames all the rest of this stuff and cook   times in touch designer is really giving you how  long it's going to take right so it's like saying   cook time is this amount of time that it's going  to process this and if you have long cook times   it's mean it's taking longer so this is another  thing of efficiency to see how your network is   working right but what we want here is we want  the number of rows and that's basically going   to show in here and saying here's how many rows  are on this right and as we add a new file it   will change this number of rows because this is  picking up and saying oh instead of having these   um four videos and three pictures which would be  seven files again remember zero to seven kind of   weird computer lingo we have eight number of rows  right so in our limit this is a good thing to do   where we are taking and if we hit the little  plus button and we add our number of rows and   we create to maximum and we do a chop reference  it's giving you this section of saying okay I see   what the max is now right so it's going to count  and it's going to then switch and anytime we add   a new file it will automatically understand  that the limit of this is set to eight right   so we also we're going to change this to zero for  our minimum so we're counting from one two three   all the way up to eight which is really just our  seven file so we're going to start through our   zero to one two three four five six seven  and we're gonna see and we're gonna might   have to adjust this in a second but um so we  have this kind of network right here right   so we have this information we have a select  and we need to add our movie player right so   in our top then we take our movie file in and  this is what is going to play the different files   um and this is what we showed in class  where we did a little python is we're going   to select this and under here we're going  to type in our script which is basically the code to say to look into this select chop  right and so we do op which is going to be the   operator we then in parentheses type in select  one because that is the name right down here and so we have op impresses  Z select one and then we do   bracket and not curly bracket so if you see  there's the little bracket on your keyboard   and the curly bracket will have a curl in it  and then we type one and then we um type path and then we close the bracket and this  stuff is important so our apostrophe and   um our quotes So this is so it's basically saying  I'm looking at this right here I am going to look   for Row one because this is what we want to play  and this is why it says one and it's going to be   following in this path right so as we do that we  click it we press return it is now picking that   picture which is a PNG and it's saying I'm  seeing this picture because that is Row one   so it's not changing anything in the select  because we haven't created anything but we   created this but we haven't addressed this  in the slack to create right so we then hit   the plus button again we drag our little  second oh you know what I'm going to add   one more thing because the case we change  our Network it's always good to add a rename and we put our rename in here and we  are just going to change this to um movie selects so that is now changing the name from a  second and this is in case we wanted to   change this value in our select instead  of having a second we were going to check   um select like a minute uh and so you could in  here basically say I'm going to take this I'm   going to select everything again but then I'm  going to select a minute uh seconds I'm just   using an example so we can see as I pointed  out in class so we are going to use slackens   to make it quick so we have to wait a minute to  see how the file changes right so we have this   we have our Network we have our movie file in and  in our select we after we hit index we want to do   the start row index and this is going to say hey  this is the file that I'm looking for right so   we take this um oh one more thing we want  to add always as a favorite is our no and this is our end of chain so we we go in  here we select this we take this and we drag   it on here and we do our chop reference so as  you can see now it is selecting from our file   database the different files within that so it  is playing these files and it's just making a   very efficient system to pull data off your hard  drive and not have a bunch of movie files or a   bunch of you know picture files uh within your  system right um so again what we did in class is   you know we we kind of came up basically with this  network and one thing I'm going to add to this is   if you right click on here and you add a fit and  fit is basically like it's going to change the   resolution so no matter what resolution you have  in here it's always going to say I'm going to have   this equal resolution right so when we make our  networks if we had like a video that was 4K and   a video that was uh you know 1920 by 1080 they're  going to be two different sizes and how they go   out on your screen could be one could be small one  could be big 1270 by 720 all those different types   of things right so we're going to take take  our fit and this is basically saying is this   going to fit best or is it going to fit out same  we're going to select fit outside and basically   it's always going to whatever resolution you're  setting within your fit is it is always going to   be that consistent resolution that's coming  out and you can find this within the common   and you can say okay I'm going to do  this resolution or custom resolution and   um my custom resolution I could say  I'm going to make this 1920 by 1080.   and you can see right off the bat it took our  images that were really a 512 by 512 image and   it stretched them to 1920 by 1080. so it filled  the whole screen um so there we have that you   know so this is kind of showing basically our  little movie player and and scrolling through   these different images and you know within every  second it is changing something right so the other   thing that I talked about in class is once we  make this neural network we want to then save   this or make this a its own container so right now  InTouch designer it's in our whole project file uh   but it's not in its specific base or container  so what we do is we select all this so all our   nodes are selected and we right click and we  go to collapse selected once we're in collab   selected you will see that we have our little base  container and let's just call this movie player what would be cool is anything in this  movie player but we can make a little   um output or a little null in here to show on  that display so what I'm going to do is at the   end of this chain I am going to add a null and  not an Oculus Rift I did the wrong one I know   that everyone likes my uh search and select  in touch designer so we're going to take this   now and we're going to add this to the end of  the chain and we're going to call this BG and   there's two things we're doing here we're going  to add an um the null um so this is always going   to be a reference of what's inside the network and  then we're also going to um we're gonna add an out   right so we have two things coming out of our  fit and really what I wanted to do is have the   out on the outside of the no I just double  change myself but you can see so we have BG   which is our no which BG stands for background  that's my little acronym for it and then our out   is going to be our outlet that when you look in  here you are going to see our out file right here   and um why I'm showing this is a double step is  if I click this you would actually see what's   playing in here right now because in our common  it is selecting the out as the operator viewer   so the operator viewer is what is showed  when you clicked a display within a base   um at points when you start to build more Networks  you're going to see where you don't want to always   have outs and it's just like cleanliness thing  of where you're selecting networks from other   networks um but what I wanted to do is explain  this a little bit of putting this little no and   then changing uh your movie player display  so instead of the operator viewer being out   one I'm going to change this to BG which I just  created and it's actually doing the same thing   right so it's showing the BG on this display but  if I went in here and I deleted my out you will   see that it's still showing it so end of chain BG  this is the display there's no Outlet right here   um it's a nice clean container that I could come  in here and select this null and move this into   another Network and I'll explain that a little  bit more in class so we created this and the   one thing is you can see the one thing that  I wanted to describe is I have some pictures   playing in here and I have some videos so let's  say I only wanted to have the pictures I can go   into my folder and instead of all extensions I can  just say I want to have only image and sections   right so now it is just scrolling through our  images and one of the benefits of creating this   little info top in here is I also by changing  my limit adjusted this limit to now four right   because it's doing a little bit of a calculation  on math because there's four different things   because it's seeing again zero and the three  images not to be overly confusing but there's   four line items in this folder but there's only  three images so it's saying my maximum value is   four so now we are just playing images if we also  go to our folder and we decide to not play the   images that we only want the movie extensions you  can see now it is link selecting the four movies   and if we look in here again it is showing our  info and in our limit is now showing five because   there is four movies right so hopefully this  helped and hopefully this explained a little   bit about what we did in class and if you need to  dive back in or you forget what we did or those   on Zoom uh can see this uh thank you very much and  looking forward to see you guys in class next week

Share your thoughts

Related Transcripts

Audio Reactive Particle Magic Wings in TouchDesigner thumbnail
Audio Reactive Particle Magic Wings in TouchDesigner

Category: Howto & Style

Intro welcome back to another touch designer tutorial  today we are going to be creating this particle   wave we are going to be doing this with  some audio reactive elements we're going   to be using some patterns and we're going to be  chopping that into some particles we're going   to be using a... Read more

Optimizing the Blur TOP in TouchDesigner thumbnail
Optimizing the Blur TOP in TouchDesigner

Category: Entertainment

So a really simple trick that everyone can do with this is when you're creating a blur top take advantage of the other parameter that we have here which is the pre-shrink so for example instead of turning the filter size all the way to 81 and having pre-shrink at one i can actually achieve a very similar... Read more