How to solve Depth of Field edge problems in Nuke

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ก.ย. 2024
  • Please support my channel at Patreon: / hugosdesk
    This week, on Ep 01: You just have to be better…. at Depth of Field in Nuke. Here are the files in the video:
    www.dropbox.co...
    Every week I will present a Tutorial for Visual Effects in under 5 min, Under 5 min you say? Well we all tired long tutorials. an you know what? you can always watch the video again, it’s not like it's a live art performance that only 20 people watched and we lost forever... right, so let’s start.
    Thanks so much for watching.
    As always: like, share, comment and subscribe to my channel.
    Follow Hugo's Desk for more!
    Support Hugo's Desk by buying some products from my Amazon UK Storefront (all earned commissions go to the running of the channel): www.amazon.co....
    -----------------------------­---
    TWITTER: / hugocguerra
    INSTAGRAM: / hugocguerra
    LINKEDIN: / hugoguerra
    FACEBOOK: / hugo.c.guerra
    PATREON: / hugocguerra
    And check my latest work as a Cinematic Director and VFX Supervisor:
    hugo-guerra.com
    Music:
    George Street Shuffle by Kevin MacLeod is licensed under a Creative Commons Attribution licence (creativecommon...)
    Source: incompetech.com....
    Artist: incompetech.com/ #hugosdesk #nuke #compositing #vfx #foundry

ความคิดเห็น • 139

  • @HugosDesk
    @HugosDesk  5 ปีที่แล้ว +1

    Hugo's Desk will be live on Twitch tomorrow Sunday, 17th March from 15.00 GMT. This will part Two of a CG compositing Nuke workshop using a real production shot. Hope to see you there.
    www.twitch.tv/hugosdesk

  • @liorweisspi
    @liorweisspi 8 ปีที่แล้ว +5

    I really like the 5 min tutorial concept. it becomes very practical and useful during busy work day with artists, producers and clients. whatever the topic is. Per the Colouredge and Anti-aliasing it's the first time someone is addressing this issue in a tutorial So many thanks. I never miss any of your tutorials.

    • @HugosDesk
      @HugosDesk  8 ปีที่แล้ว

      +Lior Weiss Thanks so much fro the Kind words. Yes this started because people complained about my 90 min long FXPHD classes, lol. So I am promising always 5 min, but will try at least to be less then 7-8. Thanks again

  • @HenrikDoark
    @HenrikDoark 8 ปีที่แล้ว +3

    Hugo, how amazing was that your mini class! Several years that I watch videos of DT, FXPHD, YT and never explained to me how to normalize the depth and / or fix the artifacts!
    Thank you very much! :D

    • @HugosDesk
      @HugosDesk  8 ปีที่แล้ว

      +Henrik D'park Thanks so much for the kind words. This technique will not work if the Objects cross over too much. For that I use this and some Edge Blurs with Object ID's and sometimes a few stroke of paint. But that is another video for another time.

  • @Michael-yf6pj
    @Michael-yf6pj 6 ปีที่แล้ว +5

    Thank you very much! It is a question that I have been puzzled for a long time!

    • @HugosDesk
      @HugosDesk  6 ปีที่แล้ว

      No problem, glad I could help.

  • @haaake
    @haaake 5 ปีที่แล้ว +4

    Great information.
    You can also just use the raw depth data in the zDefocus node setting the math to "depth". You don't have to normalize the depth unless you need it for some other purpose. You can also use the Filter Erode to expand the depth channel to fix the rough edges that don't properly overlap the anti-aliased alpha.

    • @HugosDesk
      @HugosDesk  5 ปีที่แล้ว +1

      The only reason I normalize is so I can have a visual representation of where the Z-depth is. This way I can adjust Edge Extensions, Edge Blurs, Filters using IDS, etc. I just prefer to see it so I can locate where the problems are. Having said that, this video is now almost 4 years old. These days I just use Deep information to solve some of these issues, to be honest.

  • @Cimpy101
    @Cimpy101 5 ปีที่แล้ว +2

    You rock. Thank you so much for this. I was trying to tweak the depth values in maya. This is just what I needed.

    • @HugosDesk
      @HugosDesk  5 ปีที่แล้ว

      Glad to help. Thanks for watching

  • @AronDurkin
    @AronDurkin 8 ปีที่แล้ว +4

    these are the best videos about NUKE on the whole web.

    • @HugosDesk
      @HugosDesk  8 ปีที่แล้ว +4

      +Aron Durkin Thanks so much mate, making me blush. 😊

  • @yankostoyanov6702
    @yankostoyanov6702 6 ปีที่แล้ว +1

    Thanks, you're doing a fantastic job with all NUKE videos! Keep them coming.

    • @HugosDesk
      @HugosDesk  6 ปีที่แล้ว

      No problem. Wish I had more time

  • @pioniercg
    @pioniercg 8 ปีที่แล้ว +2

    Love it, cant wait for more. No crap, long, boring tutorials anymore

    • @HugosDesk
      @HugosDesk  7 ปีที่แล้ว +1

      I try making it as short as possible and to the point. It is hard but I will keep trying.

  • @PinkMarz
    @PinkMarz 7 ปีที่แล้ว +1

    I was just running into the normalizing issue yesterday, thanks!

  • @AFaria8
    @AFaria8 8 ปีที่แล้ว +1

    Thanks for the video Hugo, really nice and helpful.
    and thanks for providing the source files too.
    looking forward to the next ones :)

    • @HugosDesk
      @HugosDesk  8 ปีที่แล้ว

      +Anabela Faria Not a problem, glad you liked the video. Cheers

  • @ToonHimself
    @ToonHimself 7 ปีที่แล้ว +3

    Thanks! just discovered you channel, really cool! Gonna watch all the video's!

    • @HugosDesk
      @HugosDesk  7 ปีที่แล้ว +1

      +ToonHimself Thanks mate, more to come soon. So glad you find my channel. Hope not to disappoint

  • @Pinionistus
    @Pinionistus 8 ปีที่แล้ว +1

    Awesome and to the point! Hate those long and dragging tutorials.

    • @HugosDesk
      @HugosDesk  8 ปีที่แล้ว

      +Pavle Milićević Thanks so much mate, Hope you are well.

    • @Pinionistus
      @Pinionistus 8 ปีที่แล้ว +1

      Hugo's Desk all is good, gonna be actually teaching nuke to few friends soon. Will keep eye on you how pros do it hah 😊

    • @HugosDesk
      @HugosDesk  8 ปีที่แล้ว

      +Pavle Milićević Come man, you are more Pro then me mate. Good luck.

    • @Pinionistus
      @Pinionistus 8 ปีที่แล้ว

      Haha you gotta be joking Hugo 😂 maybe in 10yrs

  • @rr_10102
    @rr_10102 3 ปีที่แล้ว

    Short and sweet. Thanks for the very useful tip!

  • @nutellaj1778
    @nutellaj1778 3 ปีที่แล้ว +1

    Hugo is the best

  • @soheilasghary
    @soheilasghary 8 ปีที่แล้ว +1

    short, clear, helpful. Thanks.

    • @HugosDesk
      @HugosDesk  8 ปีที่แล้ว

      Thanks so much for watching.

  • @fotuoh
    @fotuoh 6 ปีที่แล้ว +1

    Great tutorial, quick and easy! Obrigado Hugo! I'm loving your videos

    • @HugosDesk
      @HugosDesk  6 ปีที่แล้ว

      No problem, thanks for watching

  • @usernoice
    @usernoice 8 ปีที่แล้ว

    Really love this series. Useful and very easy to digest.

    • @HugosDesk
      @HugosDesk  7 ปีที่แล้ว

      I try making them as short as possible but sometimes it is hard.

  • @justKolia
    @justKolia 8 ปีที่แล้ว +1

    Thank you very much Hugo! It is really cool! I like it! And i think it is not so important to get in 5 minutes range. Because sometimes is difficult to explain something in a 5 minutes. And it will get more then 5 but less then 7 or even 10. It is a quick format too! I wont be upset if your quick tut get 10 minutes. ))) Thank you sharing your knowledge and your huge experience! I really appreciate it and i think im not only one. Keep going! Looking forward your new tuts!

    • @HugosDesk
      @HugosDesk  8 ปีที่แล้ว

      +justKolia Thanks so much of the kind words mate. And yes sometimes it will be 5, 6 or 7 min. I just want to make sure it is short and one topic or node only. Easier to share and to watch. Thanks again.

  • @lukex975
    @lukex975 2 ปีที่แล้ว +1

    this helped me today. thanks Hugo

    • @HugosDesk
      @HugosDesk  2 ปีที่แล้ว

      Thanks so much for watching. Glad I could help

  • @guillaumedelescazes512
    @guillaumedelescazes512 7 ปีที่แล้ว

    HUGO !!!!! I have been struggling with this for ageeeeeessss ! Wow ! So happy to see someone treat and solve this issue ! And all that in 5 minutes.... What else...... ;) You da man Hugo ! Keep it up ! Oh by the way, do you know how you could get this to work in After Effects by any chance ? I know you don't really use it anymore but sometimes we just don't have the luxury to be Nukin' around soooooo ;) Would be greatly appreciated ! Till soon ! Take care ! THANKS A MILLLLLLLL !

  • @mdesnoyelles
    @mdesnoyelles 8 ปีที่แล้ว

    Great ! I like this new format ! 5 minutes tuto is clever idea and a great challenge XD Cheers

    • @HugosDesk
      @HugosDesk  8 ปีที่แล้ว +1

      Thanks so much. Yes it is a challenge specially since I pretty busy and this is a side hobby of mine to make content for You Tube. But hopefully I can keep it weekly. Thanks

  • @RebelPhoton
    @RebelPhoton 8 ปีที่แล้ว +1

    This was great! Thank you Hugo!

    • @HugosDesk
      @HugosDesk  8 ปีที่แล้ว

      +RebelPhoton Thanks so much

  • @ramakrishna284
    @ramakrishna284 4 ปีที่แล้ว

    Just coming to the point everytime........💙

  • @MiyuOzz
    @MiyuOzz 4 ปีที่แล้ว +1

    Simple, very effective thank you very much!

  • @GHDSchrank
    @GHDSchrank 8 ปีที่แล้ว

    Parabéns pela iniciativa Hugo !! vou acompanhar seus trabalhos por aqui ... Muito Obrigado !!!

    • @HugosDesk
      @HugosDesk  8 ปีที่แล้ว

      Obrigado, ainda bem que gostas.

  • @PixelCommando
    @PixelCommando 8 ปีที่แล้ว

    Wow so cool ;) i owe you a beer ! as we could fix our Z-Defocus in our last project..
    Thanks for your great work on helping people with your tutorials.

    • @HugosDesk
      @HugosDesk  8 ปีที่แล้ว

      +PixelCommando Thanks so much mate.

  • @r2detta
    @r2detta 2 ปีที่แล้ว +1

    Great explanation!

    • @HugosDesk
      @HugosDesk  2 ปีที่แล้ว +1

      Thanks so much for watching

  • @NervalFilho
    @NervalFilho 8 ปีที่แล้ว +1

    Fantástico! :) Obrigado por compartilhar seu conhecimento, Hugo!

    • @HugosDesk
      @HugosDesk  8 ปีที่แล้ว

      +Nerval Filho Obrigado por veres

  • @lazyartist5163
    @lazyartist5163 2 ปีที่แล้ว +1

    We need an updated version of this tutorial. If it's possible. Thank you!

    • @HugosDesk
      @HugosDesk  2 ปีที่แล้ว +1

      It's on my list but I do show this on my latest stream! I will publish a edited version soon but the full stream is up.

    • @lazyartist5163
      @lazyartist5163 2 ปีที่แล้ว

      @@HugosDesk okay, I will watch. You are a great teacher. Thanks for sharing ur knowledge!

  • @OlafBlomerus
    @OlafBlomerus 4 ปีที่แล้ว

    A huge help. Thank you, Hugo.

  • @JohnAnderson-yy1uo
    @JohnAnderson-yy1uo 3 ปีที่แล้ว +1

    desde o inicio você sempre fazendo incríveis trabalhos! 🏆🏆🇧🇷🇧🇷

  • @SupunLankage
    @SupunLankage 5 ปีที่แล้ว +1

    Super cool job!

  • @brod515
    @brod515 8 ปีที่แล้ว +1

    thank you this looks like it will be fun.

    • @HugosDesk
      @HugosDesk  8 ปีที่แล้ว

      +MrBrN197 Thanks so much. I hope so. Cheers

  • @naveenprabhu_Vlogs
    @naveenprabhu_Vlogs 6 ปีที่แล้ว

    Hugo you make my life easy thanks

  • @danielefrontini6204
    @danielefrontini6204 7 ปีที่แล้ว +1

    Thanks Hugo!

  • @sachindhillon4099
    @sachindhillon4099 ปีที่แล้ว

    Very nice

  • @9177852573
    @9177852573 7 ปีที่แล้ว +1

    Good one! thanks

  • @RajuMon2016
    @RajuMon2016 4 ปีที่แล้ว +1

    Great video

  • @miltongiordano
    @miltongiordano 7 ปีที่แล้ว +1

    really interesting video

    • @HugosDesk
      @HugosDesk  7 ปีที่แล้ว

      Thanks mate. Glad you like it.

  • @ryanjstever
    @ryanjstever 2 ปีที่แล้ว +2

    Really appreciate your tutorials! Have you composited with passes from Unreal Engine? Im trying to follow what you are doing here but the passes from UE look a little different.

    • @HugosDesk
      @HugosDesk  ปีที่แล้ว

      Unfortunately not yet, but I will soon!

  • @HugosDesk
    @HugosDesk  7 ปีที่แล้ว

    Do you like this tutorial? Want to see more? Support my channel in Patreon for $1 and have exclusive timed access before everyone else. Don't miss out: www.patreon.com/hugosdesk

  • @backendninja8333
    @backendninja8333 8 ปีที่แล้ว +1

    Wow, that's great tip.

    • @HugosDesk
      @HugosDesk  8 ปีที่แล้ว

      +Cyan Tarek Thanks so much

  • @ACES-BRAZIL
    @ACES-BRAZIL 7 ปีที่แล้ว +1

    NOBODY SPENDS NOTHING IN THE NET ... I KNOW WHY YOU ARE RELEASING THESE MIGALS

    • @HugosDesk
      @HugosDesk  7 ปีที่แล้ว

      +VFX Sorry what?

  • @mindsteamers
    @mindsteamers 8 ปีที่แล้ว +1

    Great tutorial! Could you show us something about using deep composite?

    • @HugosDesk
      @HugosDesk  8 ปีที่แล้ว

      +mindsteamers Yes maybe another time, sure. I will added to the list. Thanks so much for watching.

    • @Pinionistus
      @Pinionistus 8 ปีที่แล้ว +1

      +Hugo's Desk yeah hardcore deep compositing is my next stop on my learning curve 😊

  • @offshot1st
    @offshot1st 8 ปีที่แล้ว +2

    This is a great idea. The edge thing has always thrown me with zdepth. (student)
    What is the difference between the Nukepedia node, and copying the alpha and eroding it or dilating a few pixels?
    Just wondering.

    • @HugosDesk
      @HugosDesk  8 ปีที่แล้ว +1

      Thanks for the kind words. Yes you can do it manually without gizmos but I just find it easier to use the pre-made nodes. But there are many ways of getting the same result. Cheers and thanks for watching.

  • @zsmithcreative9519
    @zsmithcreative9519 4 ปีที่แล้ว +3

    ColorEdge & EdgeExtend remove from nukepedia any any suggestion how to find out this 2 gizmos...?

    • @HugosDesk
      @HugosDesk  4 ปีที่แล้ว +2

      You can do the same with Nuke 12's new Edge extend node! The new node is GPU accelerated. But if you the old ones want here you go: www.dropbox.com/s/qs8fhzp594w7u25/Archive.zip?dl=0

    • @zsmithcreative9519
      @zsmithcreative9519 4 ปีที่แล้ว +1

      @@HugosDesk really appreciate it man..thanks a lot..

    • @HugosDesk
      @HugosDesk  4 ปีที่แล้ว

      @@zsmithcreative9519 NP

    • @mariozorzi
      @mariozorzi ปีที่แล้ว

      @@HugosDesk Thanks Hugo!

  • @monocore
    @monocore 4 ปีที่แล้ว +1

    Awesome

    • @HugosDesk
      @HugosDesk  4 ปีที่แล้ว +1

      Thanks. Need to make a new version, this is like 4 years old already.

    • @monocore
      @monocore 4 ปีที่แล้ว

      Hugo's Desk that would be great. I just moved from AE to Nuke and I found your videos super helpful. The logic is exactly the same I just need to work my way through the right nodes. And the edges problem in depth is old as time itself. I used to render the depth pass 4x times the resolution but that is no longer suitable.
      I’m having trouble with overlapping foreground de focused objects, but I guess that’s just a limitation of the technique perhaps? Anyway, big thanks and keep it up!

  • @Alexandremetalhead
    @Alexandremetalhead 8 ปีที่แล้ว +2

    Hugo, obrigado por compartilhar conhecimento.
    E quanto aos tutoriais em português, você ainda pretende faze-los?
    Grande abraço e sucesso para você.

    • @HugosDesk
      @HugosDesk  8 ปีที่แล้ว +4

      +Alexandre Rufino Obrigado. Achas que existe muito gente que gostaria de ver em Português? Achas que sim? Eu posso fazer Dub a este e ver se tem muitos "views"

    • @Alexandremetalhead
      @Alexandremetalhead 8 ปีที่แล้ว +2

      +Hugo, eu acho que sim.
      Existe um canal chamado Borgo TV, do Magno Borgo. Todos os seus vídeos são em português, e acho que tem uma comunidade grande e muito carente de tutoriais em nossa língua.
      Seria ótimo se você fizesse tutoriais em português, já que você é um dos grande nomes da composição digital :)

    • @AndreiBoscoBR
      @AndreiBoscoBR 8 ปีที่แล้ว

      +Hugo's Desk Também acho que seria bem interessante vídeos sobre composição e nuke em português.

  • @MaDiViL696
    @MaDiViL696 7 ปีที่แล้ว

    Really cool video ! I just have a question, i have an animate and i would like to have my focus first on the FG and then defocus to the BG, and i some issues doing it. even if i animate the focus place. Is there anything to be carefull about ?

  • @GHOSTPIXEL95
    @GHOSTPIXEL95 5 ปีที่แล้ว +2

    Hey man great tutorial! I was wondering where can I find the Edge Colour gizmo it seems to be deleted from everywhere, I dont know why L( plz help!

    • @haaake
      @haaake 5 ปีที่แล้ว +1

      You can also just use the Filter Erode to expand the depth channel by +1 or so to expand it to properly cover the alpha. Put the FilterErode into your depth channel stream, set channels to "depth.Z" and +1 or so should work fine.

  • @rikinpatelvfs
    @rikinpatelvfs 6 ปีที่แล้ว +1

    Hi Hugo. Once again, great tutorial. Very helpful to a lot of us. But I have a question for you. I was working on something similar and getting the same artifacts, but in my case the 3d geo was overlapping and the edge of the foreground object was off by a few pixel (with depth pass). As objects were overlapping, I couldn't do edge extend. Hope it makes sense. How would you approach to this problem? Thanks in advance!

  • @pioniercg
    @pioniercg 8 ปีที่แล้ว +2

    Does ColourEdge node has different name on nukepedia, cant find if there?

    • @HugosDesk
      @HugosDesk  7 ปีที่แล้ว +7

      Try this link, these are some of the gizmos I use: www.dropbox.com/s/nqjzmiiba38w8zt/Edges.zip?dl=0

  • @MrThirumal
    @MrThirumal 5 ปีที่แล้ว

    Thanks hugo.....

  • @WiseHoax_ArijitDatta
    @WiseHoax_ArijitDatta 5 ปีที่แล้ว

    I have a render but which has no alpha channel because its a ground shot .then what to do??

  • @entertainmentchannel8952
    @entertainmentchannel8952 5 ปีที่แล้ว

    please make a video which describe it more in depth and detailed

  • @Advection357
    @Advection357 6 ปีที่แล้ว +1

    Is there a way to get a "Y depth" from a renderer? As in points close to camera's height are black and farthest upwards are white... so just an axis change. Maybe something can be done with the position pass? It's for an atmospheric effect I'm trying to build in post & want to avoid rendering large scalar field volumes :3 Search brings up nothing...

    • @morrisabramian2276
      @morrisabramian2276 5 ปีที่แล้ว

      this can be created while rendering, a falloff map based on camera Y axis

  • @talesbyfirelight3728
    @talesbyfirelight3728 5 ปีที่แล้ว +1

    Hey Hugo! great vid. The values in your Depth pass are in the thousands. 3108 for black point and 1873 for white point. The Depth pass I'm testing out here from my client is 1.09000 at it highest and .55000 at its lowest. And its backwards. The closest part is darker and farthest point is brighter. Any thoughts?

    • @HugosDesk
      @HugosDesk  5 ปีที่แล้ว

      Not sure about those values. Are you clamping or limiting the values in 3D? The values should match 3D coordinates and distances camera so if your 3D is made to corrects scales it should be a lot higher.

    • @mixjix
      @mixjix 5 ปีที่แล้ว +1

      I'm having the same problem, did you manage to resolve this?

    • @HugosDesk
      @HugosDesk  5 ปีที่แล้ว +1

      You need to make sure you have correct values in the Zdepth settings in 3D. Also you need a proper scale in your 3D scene. Maybe that could be the problem?

    • @mixjix
      @mixjix 5 ปีที่แล้ว

      @@HugosDesk I'm new to Nuke, but turns out your workflow works for me, I for some reason have to use decimal values from 0-1 (0.XXXX) instead. Will look into your suggestion though, thanks.

  • @apmanti12
    @apmanti12 6 ปีที่แล้ว +1

    hey hugo, can you explain on how to use curve tool to find depth?

    • @HugosDesk
      @HugosDesk  6 ปีที่แล้ว

      I guess that’s a video right there. Thanks

  • @blackswann
    @blackswann 4 ปีที่แล้ว +1

    Hey Hugo! Is there a way to fix the edges of this character if she was rendered out as part of the background and not a foreground element? I’m running into edge problems on a scene with lots of leaves and grass - when trying to apply depth of field on the whole scene in Nuke I get edge artifacts in between leaves - any way around this in Nuke or would you need to render DoF in camera in 3D?

    • @HugosDesk
      @HugosDesk  4 ปีที่แล้ว

      Only way to go around this is to use Deep compositing and PGBokeh. Everything else will have edge issues. Last resort would be DOF in 3D

    • @blackswann
      @blackswann 4 ปีที่แล้ว

      Hugo's Desk thank you for quick reply! Loved your deep compositing process video - will have to try this out.

  • @ACES-BRAZIL
    @ACES-BRAZIL 7 ปีที่แล้ว

    NINGUEM PASSA NADA NA NET...
    EU SEI PORQUE VOCES ESTAO LIBERANDO ESTAS MIGALHAS

  • @bassamkasper
    @bassamkasper 8 ปีที่แล้ว

    Great ,, thank you

    • @HugosDesk
      @HugosDesk  8 ปีที่แล้ว

      Thank you for watching

  • @jkartz92
    @jkartz92 7 หลายเดือนก่อน

    is coloredge node removed in recent versions of nuke?

  • @Screensam
    @Screensam 5 ปีที่แล้ว

    Hey Hugo! Do you know if there is a way to link the focal point attribute to a tracker? It seems that Nuke won't let me do it...

  • @annasorgon8878
    @annasorgon8878 8 ปีที่แล้ว +1

    thanks... where is it possible to find the colour edge node? on nukepedia I´m not able to find it!!!

    • @HugosDesk
      @HugosDesk  8 ปีที่แล้ว +1

      Here you go: www.dropbox.com/s/54o65exulbir0ca/ColourEdge.gizmo.zip?dl=0

    • @annasorgon8878
      @annasorgon8878 8 ปีที่แล้ว

      Thanks a lot Hugo, I really need it!

  • @Nighscreach
    @Nighscreach 2 หลายเดือนก่อน

    I can't find those nodes in nuke

  • @dysnXO
    @dysnXO 4 ปีที่แล้ว +1

    Any idea how to fix this in After Effects?

    • @HugosDesk
      @HugosDesk  4 ปีที่แล้ว

      I am sorry but not sure how!

  • @radhanathdutta7312
    @radhanathdutta7312 7 ปีที่แล้ว

    what the mask pipe do? why that goes into that character?

  • @jszewczyk
    @jszewczyk 11 หลายเดือนก่อน

    Dropbox link is dead :)

  • @ghamay2011
    @ghamay2011 8 ปีที่แล้ว +1

    Dropbox link is dead

    • @HugosDesk
      @HugosDesk  8 ปีที่แล้ว

      Fixed now. Cheers

    • @ghamay2011
      @ghamay2011 8 ปีที่แล้ว

      +Hugo's Desk Thanks hugo for a quick reply and it works now.