All language subtitles for nuk231-class08

af Afrikaans
ak Akan
sq Albanian
am Amharic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranรฎ)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu

Original subtitles

hello and welcome back to nuke 2 3 1

nuke composting best practices

this is Victor Perez

and in this class

we are going to discuss

the issues of working with relative paths

which is the way nuke handles the fives

when you import using the read note

okay so we're going to study different ways

of relinking those relative paths

in order to lose as less time as possible

every time you are changing computers

or when you are changing the location of your source

images okay

so let's start by showing you what is my footage

which is in here

this folder on my desktop

that I call original folder

which is a very easy way to understand

when we are going to move from here to this new folder

which is the moved folder okay

so right now

all the images in here

are import on my nuke script here

okay so here you are

so what I'm going to do is I'm going to close

I'm going to change the position of this folder

okay here you are

and now as soon as I recall the same script

I mean shoe

is going to appear

here you are

this is what I mean

now the paths are broken

because nuke is still trying to look for those images

inside this original folder

but I move everything to here

so instead of doing the relink

as we probably do

for only one single image

so going in here

and then clicking here

and then going into my desktop mood folder

footage and then selecting the fire

imagine that for one

that's a bit annoying

but when you have something like in here 6

or imagine way more

when you have a complex script with many elements

for instance

100 elements of smoke fire

water um CG

that can be an issue

and you know

now there is a tendency to work with freelance

from home or from personal studio

so the work is now traveling through the network

which means that

every artist is having a different location

or a different path

or even a different operative system

to get into that particular image

so the first thing we need to get

is an structure pipeline

with the same naming convention

and for the structure

for everybody

which is working with the same images

even if you are working in the same company

in the same network

even just the tiny variation

of working with a different operative system

for instance

Mac or Windows or Linux

that the way of handling the information

for Windows and Mac

is very different

because for Windows

the full name for the operative system

hard drive is C

while in Mac

for instance

is in volumes

Mcintosh HD

so even if you respect the same for the structure

just changing the breath system

is going to change everything

so at least

what I am assuming is

you are not changing the name of the files

or even the name of the folders containing each file

so this foldering here

which is the footage

hasn't change

what change

is the folder containing that

so we are going to call in there

two parts for this stream okay

this users Victor

Press desktop

move further

is my absolute path

to locate my further structure

okay so this is the part

of this string

a string remember

is just a text that is

in this case

pointing the path

to get to the image

so in this case

this part of this string

he's the absolute father

where I put my

for the structure

for my project okay

and then we have this

footage folder

and any other folders

or the image

like in here

okay so that is structure

that is not changing

the only changes

the beginning

that is structure that is not changing

is the relative path

okay because it's relative to my

further structure

so what I did

is just to move

my main folder

of the relative path okay

so what I should do

is just to change

my absolute path

from pointing here

to point here

and then everything inside

this folder structure

is going to be

recall using

the relative path

so everything is going inside the footage

and inside the footage

is going to find

all the images

exactly as before okay

so the first method

I'm going to show you

is going to be using

a plain text editor

so no tricks

nothing is just

search and replace

okay so for doing that

I need a copy

of my script

so I'm going to save a copy

on my desktop

in order to prevent

to modify the original

so we can use the original for

all the other instances

so here you are

save as in here my

relink class

okay so in order to apply the text editor way

we need to change at least one single readnote

just to have the relative path

and the absolute new path

okay so I'm going to get in there

and I'm going to

my desktop mode folder

and here you are

okay so this is going to be the one

the read one

okay so I'm going to save

I'm going to quit

and now let's open this relink with any text editor

remember that you can use

the regular text editor with Mac

or the block notes from Windows

just any plain text editor

I'm going to use

for the sake of this exercise

to be more clear

the text Granger

which is a script editor

so you can use Python or any other script language

and in here is going to be clear

to use this okay

so let's search for the read one

which is the one that is having the new path

okay so let's start by using the search option

which is in here find

and let's find read one

okay case sensitive

okay so next

and here you are

this is the one that I was searching for

okay so this first part is having

as you can see here

that move folder

okay so what I'm going to do is

I'm going to find the original path

and I'm going to replace with this one

so the original path

is going to be on any other readnote

so for instance in here

okay so remember

you need to have exactly the same

same amount of slashes

okay or backslash

in case you are using Windows

so if you finish your call with this

that should be in both okay

so I'm going to get that

and at the same way

don't mistake any spaces

okay so you have the same

okay same structure this lash

okay so now remember you have to put case sensitive

okay I'm going to remove the entire world

because I don't want just to have a whole block

but any part of the text that is containing this

is going to be substitute with this

okay so now I'm going to replace all

okay so now as you can see

everything in here has changed from the original folder

to the move folder okay

so that's the nice thing of using nuke

because everything

even this creeps

are human breathable

okay so we can operate everything

once we have our change

we're going to save

we are not going to change anything else in the script

because we can break the structure of the script

and that is going to corrupt

okay so I'm going to save without formatting

and now I'm going to close

and this relink class

is going to have all my folders perfectly aligned so

let's open relink class

here you are

um here we go

everything is now working perfectly

okay so this is the easiest way

because you don't need to have any knowledge

or a scripting or anything else

is just plain text replace

okay so now we are going to get a bit hardcore

because we are going to start using Python

and for that no worries

because I put the receipt everything in here

so you just need to copy and paste

but if you know a bit of Python

you will see that even the receipt is really easy

just to apply

there are just a few lines of coat

that I'm going to show you in a bit

so let's close this again

I'm going to delete this link class

now I'm going to open the original again okay

so the original

should be working

here you are

okay so this time

because I'm going to apply a Python script

I need my script editor

so for that I'm going to split vertical in here

and now I'm going to call

the script editor

okay here you are

so now I'm going to copy the content of these

sticky note

and I'm going to explain you

what you need to do with this

okay so first things first

as I mentioned before

you are going to need to change at least one read note

just to understand

where is the location of your absolute path

you know the path

containing the further structure of your images

okay so in here

imagine that I changed that

I did it already

so I got in here

where was my original folder

as you can see

okay so I just put this varievo

which is old location

where my folder was originally placed

and now in here

I have another varieval

which is called Neon Location okay

and it's containing the path of the absolute new folder

okay the folder containing

now they for the structure of my images okay

so I called here

the first one search

and the other one replace okay

now in this line 7

I put just a comment

as to let you know that this line 8 and after

is just operating that action to search and replace

so what I did is just to create a loop

a 4 in loop

so for every element in my selection of notes

that are read notes

this is going to

make sure that you are selecting read notes

in case you are selecting other notes that are not read

they are going to be ignored

so from all your selection

is going to calculate the path

and then is going to get from this

where is the position

of the all location

and where is the position of the relative path

so now it's getting my relative path

and applying that to the new path

which is the one you have in here

okay so now

once you have that

he's just writing in the file knob

everything from the absolute path

including the relative path okay

it's really

really easy

so remember that we are operating with the

selection of notes

okay so we are going to select those notes

you are going to place in here

where was the folder

and now where is the folder

actually okay

so once you have that

and you selected your notes

you just execute the action by pressing this

and here you are

everything has been relink

so just by doing copy and paste

you are going to get everything relink very

very easily

if you want to get this even more easy

you can create your own model window

and even install that as a python call on the menu

so that is going to ask you

where is the absolute folder

where is the new

of the folder

and then is going to make the calculations

automatically

okay that is very

very handy okay

and now this time

we are going to apply a note

that is going to drive

all the file knobs

okay inside your grid notes

okay so this is the sign for you

when you are sure

that you are going to be traveling with your files

and you want to have everything preinstall

just to make easy changes

without the need of Python or

or the text editor

everything is going to be in beat

in your script

so it's going to be really

really easy to call

and is just this structure

so what I did

is I create a

no operation note

which is in here the Wop

I changed the name

so I put the name I wanted

and it's in this case relink

and then what I did

is to populate

using manage user knobs

so I call all the knobs in here

which is for instance

the text input

okay so you put a name

that can be bath

and that is the name

you are going to fear

when you are writing

the expression

and I mean the nuke expression

on those written notes

and the label

something that is going to be very healthy

is just to put

the same name

as the label

okay so bath

so that is going to create this

okay then what I did in this example

is just for you

just to get everything easier

so I create

instead of a text input

I create a file name

so I can click in here

and select the folder

okay so right now

is my original folder

but see what happens

when I go to the

move folder

and I just selected my folder

no final file

so just the folder structure

so move folder

which is the absolute path in here

so I open and

as soon as I

willing that

see everything in here

has changed

and now is working okay

so I just did that

and in here I put

this nuke expression

which is for you

to copy and paste

so I'm going to make an example

so I'm going to copy

by using command C

and in here

I put also a

text for you

just to tell you

what to do with this

but the question is

really easy

what we are going to do is

we are going to replace

the absolute path

with this nuke expression

so we are going to

one of those

and what is my absolute path

remember is

the path containing

the folder okay

that is the main folder

of the further structure

and when we are talking about

the absolute path

remember that

we are always going to

include the slash

or backslash

in case you're using Windows okay

so we're going to select

everything in there

and now we are going to add

the nuke expression

and let me tell you

what I'm doing in here

so what I did

is just what

those square brackets

that in any text input

knob inside nuke

is representing

an expression

a new expression

so in here I put knob

which is referencing to a knob

in a certain

note that certain note

in this case

is this relink

which is this note

as you can see

is the name

which is displayed in here

and then dot

location location

is the knob

that I have in there

exactly the one

that is pointing

to the folder okay

so that way

what I did is

just to create

an expression

as you can see

with this expression arrow

that is pointing to

this order file

so in case I change my mind

now and now

I replace this

to the original folder again

so as soon as I

reload that

he's not going to work

so even if I change my frame

and now I get back

everything is going to

get the error okay

but now how can I change that

well you can change it by replacing here

the folder with the original folder again

so now everything is perfectly working

okay so with this

you have the control inside the script okay

just let me tell you that it's a bit annoying

just to have all those expression arrows

okay so if you want to hide those expression arrows

just press alt e

okay so that is going to hide your expression arrows

but something that could be nice

is to find a way to place this nuke expression

automatically

without the need to go one by one each of my read notes

and placing this manually

so how to do that

well remember what we did to replace the path

with the text editor

well you can do exactly the same

so instead of putting a path

you are going to put this expression okay

but actually

in terms of effects

edit makes no difference

because he's just an extreme

so a chain of just characters

and this time

we're going to get a bit smarter

so you are going to get something that is high class

we are going to install a panel

that Frank Rooter created and publish on Wikipedia um

let me point out where you can find it

which is in here

so Wikipedia okay

I've left the link to this page

on the class files for this class

okay so you can just get here directly

Frank is one of the most important

nuke masters in the world

so he created many

many useful tools

and this is one of those

so you are gonna love it

it's really easy

so you just getting here

you download it

I did it already

and then to install it

you just follow the instructions in here

so we are going to do it together

no worries so

in order to install it

I'm going to close nuke again

just to make it work

so we are going to the dark nuke folder

we already discussed that in a previous class

so go to folder Dot nuke

and now as I download it

I'm going to get it from my downloads

inside my Dot Nuke folder so yes

Dragon Drop

and here you are

now the only bit missing is

you need to edit your menu dot p y

in case you don't have it

just create a menu dot p y

by using any kind of Python script editor

okay so I'm going to use text wrangle

and I'm going to

copy and paste the instructions from Wikipedia in there

so yes from here

copy

and paste so now I save I close and let's open nuke

here you are

so now the panel is installed

okay so by the Foley is not in there

so I'm going to call it in here

Windows custom

and here we are

okay so I'm going to open

my script again

and here you are

so now again as always

we're going to get the path I have in here ready

the original path

so

here you are

and now

I'm going to search for that

and I'm going to replace

with the new one

okay

in here okay sensitive

and now he's telling me already

all the information in here okay

and what you should do is just to select

if you want all the notes or just the select notes

so I'm going to do it with the selected

so I have more control

so in here okay

so you can update to understand what's going on in here

and then you replace

once you place the replace

everything is going to be working

and you can get the search and replace panel

installing your nuke

so is going to be very

very handy to change not only this

but many other options

that you can get that many

many values from any note existing in your note graph

okay so that is a search and replace panel now

let's close again

and this time

we are going to do something different

what we are going to do now

is we are going to place the footage

to be everything in a relative pattern

okay so I don't care now about the absolute

position of the folder

the important thing is going to be the relation

between where my script is going to be located at

and the folder containing the images

so this is going to be very handy

when you are placing everything in a drive

and you want that drive just to travel from

one computer to another

or this is the way I used to send you

the images for the class files

so as you decompress the sip containing everything

the script and the footage is in the same folder

so when you open the script

everything is relative to the position of that script

that is quite nice

but is not very handy

when you are working in a whole facility

and you are working with many people on the same street

or the same for their structure

because that is going to change constantly

but when you are working alone

and you want to move from one computer to another

but you are going to still use the same drive

that is going to be very handy

so let me show you how

we're going to open again nuke

and now again

we're going to open

this is script

this is not working

because the absolute path has changed

well this time

I don't care about the absolute path

so what I need is just to place my script

in the relative path of my folder

so I'm going to save

savecom as now in here

let's go to the desktop

to the move folder

that is containing my footage

and I'm going to save it in here

okay so I'm going to call it

relative

path okay so safe right now is doing nothing no worries

but now we are going to the project settings

and in the project settings

you have this project directory

okay so by default you will find it

that is empty okay

so what you need to put is just pressing here

he's going to tell you okay

everything is relative to the position of this script

okay so now I save

and now I'm going to all my read notes

and I'm going to delete the absolute path

so including this lash

I'm going to delete that

and now as soon as I delete it

now is working

is because everything now has been set to be relative

okay so again

remember if you want to change everything at once

you have now three different methods okay

but the important thing is there is no absolute path

just the relative path

and everything is going to be set

to the position of the script

okay in case you have your script

like for instance inside the folder so

script and now in here you get relative path

inside okay

now if you want to make that work

you're going to call dot dot slash

that is going to set an order to go

outside the folder you are containing

and then recalling that

so that is in a whole relative path to the script

and then we have another very different

which is how the system is going to behave

when you are in Windows or in Mac

or in Linux

so this is not the sign

to change the path of the access to the images

but is actually designed to

understand how the system is handling

with the folders you are accessing to the network

okay so imagine that

volume inside the Windows environment can be set letter

set so I'm going to put here an example

and imagine that is set column

okay so that is the volume

while in Mac can be volumes

network drive

for instance

so he's actually pointing to the same drive

but he's axising in a different way

depending on the operative system

and then the same for Linux

okay so we can just

teach nuke how to search for the absolute path

in relation to the operative system

when nuke is being operated

okay so for doing that

we are going to the preferences

and then in the preferences in general

you have this path substitution

okay so that means that if you get a path in OS X

so for instance

volumes uh drive

in here can be

yes seat okay

and in Linux

another way

so then every time nuke is going to find that

in Windows you are pointing at said

then in always aches

so Mac is going to look at volumes drive

whatever okay

so now you have six different approaches

just to get your path substitution

and to get everything working more dynamically okay

so the next time you get a change of the folders

or you are changing computers

or any other case scenario

you are going to be really fast

and even when you are working with teams of people

working in different computers

with different environments

with different locations for the folder

so everything can be really

really easy

if you get all those methods

just to avoid

to get stuck just on changing a single parameter

so remember

I'm here to help you focus on the art

not on the technical side

okay so that's all for this week

if you have any comments

questions or suggestions as always

you are very welcome to post them in the forums

so until the next time

this has been

Victor Perez for effects PhD

thanks for watching

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.