Hi Mat,

I just did a test with three track items with the same name on different tracks (same timing in the timeline), and using "collate shot names" produced a nuke script with all three elements (see attached).
Is that not working for you?

The copy exporter however only seems to export one of the track items (no errors).


On 30/06/15 11:55, Mat McCosker wrote:
Hi Frank,

I can get this to work if I'm using the 'separate comp' option but not if it's a single comp across all the tracks - I'm using the {track} token and don't seem to be getting any errors.

No matter how I select things, using 'all tacks' or checking each track, I still only get the one track copied over to ../nuke/source/{track}/{track}_{filename}

Here's the structure I'm using in the preset;

        <SequenceItem valuetype="tuple">
<SequenceItem valuetype="str">{shot}/nuke/source/{track}/{track}_{filename}</SequenceItem> <SequenceItem valuetype="hiero.exporters.FnCopyExporter.CopyPreset"> <root presetname="hiero.exporters.FnCopyExporter.CopyExporter" tasktype="hiero.exporters.FnCopyExporter.CopyExporter" />
            </SequenceItem>
        </SequenceItem>

Thanks,
Mat

On Mon, Jun 29, 2015 at 4:08 PM Frank Rueter|OHUfx <fr...@ohufx.com <mailto:fr...@ohufx.com>> wrote:

    I used the "track" token in folder and file names, otherwise one
    element would have overwritten the other upon export.
    In your export template there doesn't seem to be any
    differentiation to ensure multiple items for the same shot don't
    overwrite each other. not sure if that is what is going on, but
    try using the "track" token in your output paths (assuming the
    multiple elements live on different tracks).

    Let me know if this helps, I can try a bit harder here if it doesn't.


    P.S.: The error is  a python error which says that the tuple (a
    particular type of list in python) has less elements than
    expected, which points towards items overwriting each other as well.




    On 29/06/15 17:36, Phillip Lange wrote:
    Hi Frank,

    I'm still struggling to get this to work.

    Where in your export structure did you use the {track}  token ?

    I've tried many many variations and seem to get just as many
    varied results.

    Often I get this error

    "tuple index out of range"

    which, while appealing in a surreal kind of way, is not very helpful.

    I've used the collate shot names and timings as well but they
    don't seem to help.

    I've attached an image of my export structure .... can you see
    anything wrong with it ?

    Any help greatly appreciated, it's driving me a bit nutso now,

    thanks

    Phill.




    On Tue, Jun 16, 2015 at 12:45 PM, Frank Rueter|OHUfx
    <fr...@ohufx.com <mailto:fr...@ohufx.com>> wrote:

        yeah, it did work as expected after a (involuntary) restart.
        I used "track" tokens to pick up the name of the respective
        track name during export.

        You may need to use "collate shot names" if the track items
        share the sane shot name, or "collate shot timings" if the
        track items share the same timing in your timeline.



        On 16/06/15 12:50, Phillip Lange wrote:
        Hi Frank

        Did you find a solution to this ? I've just conformed from
        an xml where the editor has left clips on mulitple tracks
        and I need all those tracks as seperate inputs in my comp.

        Any solutions yet ?

        thanks

        Phill



        On Mon, Jun 15, 2015 at 7:21 AM, Frank Rueter|OHUfx
        <fr...@ohufx.com <mailto:fr...@ohufx.com>> wrote:

            I did


            On 15/06/15 07:24, Lucien Fostier wrote:
            Hey Franck,

            why dont u try "create comp (special)"?

            Seems like what your looking for.

            cheers

            Lucien

            Sent from my iPhone
            _______________________________________________
            Nuke-users mailing list
            Nuke-users@support.thefoundry.co.uk  
<mailto:Nuke-users@support.thefoundry.co.uk>,http://forums.thefoundry.co.uk/
            http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

-- ohufxLogo 50x50 <http://www.ohufx.com> *vfx compositing
            <http://ohufx.com/index.php/vfx-compositing> | *workflow
            customisation and consulting
            <http://ohufx.com/index.php/vfx-customising>* *


            _______________________________________________
            Nuke-users mailing list
            Nuke-users@support.thefoundry.co.uk
            <mailto:Nuke-users@support.thefoundry.co.uk>,
            http://forums.thefoundry.co.uk/
            http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users




        _______________________________________________
        Nuke-users mailing list
        Nuke-users@support.thefoundry.co.uk  
<mailto:Nuke-users@support.thefoundry.co.uk>,http://forums.thefoundry.co.uk/
        http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

-- ohufxLogo 50x50 <http://www.ohufx.com> *vfx compositing
        <http://ohufx.com/index.php/vfx-compositing> | *workflow
        customisation and consulting
        <http://ohufx.com/index.php/vfx-customising>* *


        _______________________________________________
        Nuke-users mailing list
        Nuke-users@support.thefoundry.co.uk
        <mailto:Nuke-users@support.thefoundry.co.uk>,
        http://forums.thefoundry.co.uk/
        http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users




    _______________________________________________
    Nuke-users mailing list
    Nuke-users@support.thefoundry.co.uk  
<mailto:Nuke-users@support.thefoundry.co.uk>,http://forums.thefoundry.co.uk/
    http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

-- ohufxLogo 50x50 <http://www.ohufx.com> *vfx compositing
    <http://ohufx.com/index.php/vfx-compositing> | *workflow
    customisation and consulting
    <http://ohufx.com/index.php/vfx-customising>* *

    _______________________________________________
    Nuke-users mailing list
    Nuke-users@support.thefoundry.co.uk
    <mailto:Nuke-users@support.thefoundry.co.uk>,
    http://forums.thefoundry.co.uk/
    http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users



_______________________________________________
Nuke-users mailing list
Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

--
ohufxLogo 50x50 <http://www.ohufx.com> *vfx compositing <http://ohufx.com/index.php/vfx-compositing> | *workflow customisation and consulting <http://ohufx.com/index.php/vfx-customising>* *

Root { 
 addUserKnob {20 studio l "Studio"}
 addUserKnob {6 annotations_show l INVISIBLE t "Control whether annotations are 
visible." +INVISIBLE}
 annotations_show True
 addUserKnob {1 timeline_write_node l "Timeline Write Node" t "The name of the 
Write node which should be used when showing the comp on the timeline."}
 addUserKnob {1 shot_guid l INVISIBLE t "This is used to identify the master 
track item within the script" +INVISIBLE}
 shot_guid "8CC37220-1E10-4D84-B8B1-E751EE8F75E8"
 addUserKnob {1 in_handle l INVISIBLE +INVISIBLE}
 in_handle 0
 addUserKnob {1 out_handle l INVISIBLE +INVISIBLE}
 out_handle 0
 int8Lut "sRGB"
 lock_range "true"
 format "2048 857 0 0 2048 857 1 CDL_output"
 floatLut "linear"
 last_frame 66
 int16Lut "sRGB"
 first_frame 8
 fps 24.0
 logLut "Cineon"
 proxy_type "scale"
 onScriptLoad "if nuke.env['LINUX']:
  nuke.tcl('load ffmpegReader')
  nuke.tcl('load ffmpegWriter')
else:
  nuke.tcl('load movReader')
  nuke.tcl('load movWriter')"
 monitorLut "sRGB"
}
Read { 
 inputs 0
 file 
"/ohufx/shows/CDL//shots/S06/S06_110/render/2d/comp/CDL_S06_110_comp_v10/CDL_S06_110_comp_v10.%06d.dpx"
 format "2048 857 0 0 2048 857 1.000000"
 first 1001.0
 last 1094.0
 auto_alpha "true"
 xpos 140
 after "black"
 frame -8.0
 colorspace "Cineon"
 ypos 186
 cacheLocal 1
 on_error "error"
 frame_mode "start at"
 before "black"
}
Reformat { 
 xpos 140
 center True
 format "2048 857 0 0 2048 857 1 CDL_output"
 black_outside True
 flop False
 flip False
 ypos 296
 turn False
 pbb True
 type "to format"
 resize "width"
}
ModifyMetaData { 
 xpos 140
 ypos 336
 metadata {{set hiero/project "test"} {set "hiero/tags/Copy/note" ""} {set 
hiero/sequence "FINAL OVER CUT"} {set "hiero/tags/Copy" "Copy"} {set 
"hiero/tags/Copy/event" "3"} {set hiero/clip "CDL_S06_110_comp_v10"} {set 
hiero/sequence/frame_rate "24"} {set hiero/shot "S07_040"} {set 
hiero/track_guid "B46B9DA0-12DF-451D-A35B-AEF200823043"} {set hiero/clip_guid 
"None"} {set hiero/sequence_guid "5A95B3D7-621E-49AA-AFBD-4EBFD7285EDB"} {set 
hiero/track "E3"} {set hiero/shot_guid "3BB9E123-A052-420F-89D5-CA7E03E92DFB"} 
{set hiero/sequence/timecode "[make_timecode 00:00:00:00 24 1008]"}}
}
FrameRange { 
 last_frame 66
 xpos 140
 first_frame 8
 ypos 376
 label "Set frame range to [knob first_frame] - [knob last_frame]"
}
ModifyMetaData { 
 xpos 140
 ypos 448
 metadata {{set hiero/sequence/timecode "[make_timecode 00:00:00:00 24 8]"}}
}
Read { 
 inputs 0
 file 
"/ohufx/shows/CDL//shots/S06/S06_130/render/2d/comp/CDL_S06_130_comp_v03/CDL_S06_130_comp_v03.%06d.dpx"
 format "2048 857 0 0 2048 857 1.000000"
 first 1001.0
 last 1121.0
 auto_alpha "true"
 xpos 550
 after "black"
 frame -20.0
 colorspace "Cineon"
 ypos 186
 cacheLocal 1
 on_error "error"
 frame_mode "start at"
 before "black"
}
Reformat { 
 xpos 550
 center True
 format "2048 857 0 0 2048 857 1 CDL_output"
 black_outside True
 flop False
 flip False
 ypos 296
 turn False
 pbb True
 type "to format"
 resize "width"
}
ModifyMetaData { 
 xpos 550
 ypos 336
 metadata {{set hiero/project "test"} {set "hiero/tags/Copy/note" ""} {set 
hiero/sequence "FINAL OVER CUT"} {set "hiero/tags/Copy" "Copy"} {set 
"hiero/tags/Copy/event" "2"} {set hiero/clip "CDL_S06_130_comp_v03"} {set 
hiero/sequence/frame_rate "24"} {set hiero/shot "S07_040"} {set 
hiero/track_guid "F0D9594E-6A08-44C4-822A-D2C996D0D6BE"} {set hiero/clip_guid 
"None"} {set hiero/sequence_guid "5A95B3D7-621E-49AA-AFBD-4EBFD7285EDB"} {set 
hiero/track "E2"} {set hiero/shot_guid "1CB876CD-BE66-413E-ADBC-722A4E94F087"} 
{set hiero/sequence/timecode "[make_timecode 00:00:00:00 24 1008]"}}
}
FrameRange { 
 last_frame 66
 xpos 550
 first_frame 8
 ypos 376
 label "Set frame range to [knob first_frame] - [knob last_frame]"
}
ModifyMetaData { 
 xpos 550
 ypos 448
 metadata {{set hiero/sequence/timecode "[make_timecode 00:00:00:00 24 8]"}}
}
Read { 
 inputs 0
 file 
"/ohufx/shows/CDL//shots/S07/S07_040/render/2d/comp/CDL_S07_040_comp_v05/CDL_S07_040_comp_v05.%06d.dpx"
 format "2048 857 0 0 2048 857 1.000000"
 first 1001.0
 last 1076.0
 auto_alpha "true"
 xpos 1060
 after "black"
 frame 0.0
 colorspace "Cineon"
 ypos 186
 cacheLocal 1
 on_error "error"
 frame_mode "start at"
 before "black"
}
Reformat { 
 xpos 1060
 center True
 format "2048 857 0 0 2048 857 1 CDL_output"
 black_outside True
 flop False
 flip False
 ypos 296
 turn False
 pbb True
 type "to format"
 resize "width"
}
ModifyMetaData { 
 xpos 1060
 ypos 336
 metadata {{set "hiero/tags/Nuke Project File 2015/06/30 14:03:35/note" ""} 
{set "hiero/tags/Nuke Project File 2015/06/30 14:03:35/format" "2048 857 0 0 
2048 857 1 CDL_output"} {set "hiero/tags/Nuke Project File 2015/06/30 
14:03:35/presetid" "995cc1efcf5aec956c7c53c7d2b14b72"} {set "hiero/tags/Nuke 
Project File 2015/06/30 14:00:23/path" 
"/tmp/S07_040/nuke/renders/E1_S07_040_comp_v01.%04d.dpx"} {set "hiero/tags/Nuke 
Project File 2015/06/30 14:04:23/sourceretime" "1.0"} {set "hiero/tags/Nuke 
Project File 2015/06/30 14:03:35/description" "Nuke Project File"} {set 
"hiero/tags/Nuke Project File 2015/06/30 14:04:23/format" "2048 857 0 0 2048 
857 1 CDL_output"} {set "hiero/tags/Nuke Project File 2015/06/30 
14:04:23/duration" "59"} {set hiero/clip_guid "None"} {set "hiero/tags/Nuke 
Project File 2015/06/30 14:00:23/script" 
"/tmp/S07_040/nuke/script/E1_S07_040_comp_v01.nk"} {set "hiero/tags/Nuke 
Project File 2015/06/30 14:00:23/startframe" "8"} {set "hiero/tags/Nuke Project 
File 2015/06/30 14:00:23/format" "2048 857 0 0 2048 857 1 CDL_output"} {set 
"hiero/tags/Copy/event" "1"} {set hiero/project "test"} {set "hiero/tags/Nuke 
Project File 2015/06/30 14:03:35/duration" "59"} {set "hiero/tags/Nuke Project 
File 2015/06/30 14:00:23/frameoffset" "0"} {set "hiero/tags/Nuke Project File 
2015/06/30 14:03:35/appliedretimes" "1"} {set "hiero/tags/Nuke Project File 
2015/06/30 14:03:35/frameoffset" "0"} {set "hiero/tags/Nuke Project File 
2015/06/30 14:04:23" "Nuke Project File 2015/06/30 14:04:23"} {set 
"hiero/tags/Nuke Project File 2015/06/30 14:00:23/endhandle" "0"} {set 
"hiero/tags/Nuke Project File 2015/06/30 14:03:35/path" 
"/tmp/S07_040/nuke/renders/E1_S07_040_comp_v01.%04d.nk"} {set "hiero/tags/Nuke 
Project File 2015/06/30 14:00:23/pathtemplate" 
"/tmp/{shot}/nuke/script/{track}_{shot}_comp{_nameindex}_{version}.{ext}"} {set 
hiero/shot_guid "8CC37220-1E10-4D84-B8B1-E751EE8F75E8"} {set "hiero/tags/Nuke 
Project File 2015/06/30 14:03:35/script" 
"/tmp/S07_040/nuke/script/E1_S07_040_comp_v01.nk"} {set "hiero/tags/Nuke 
Project File 2015/06/30 14:04:23/note" ""} {set "hiero/tags/Nuke Project File 
2015/06/30 14:04:23/localtime" "time.struct_time(tm_year=2015, tm_mon=6, 
tm_mday=30, tm_hour=14, tm_min=4, tm_sec=23, tm_wday=1, tm_yday=181, 
tm_isdst=0)"} {set "hiero/tags/Nuke Project File 2015/06/30 
14:04:23/appliedretimes" "1"} {set "hiero/tags/Nuke Project File 2015/06/30 
14:00:23/sourceretime" "1.0"} {set hiero/sequence_guid 
"5A95B3D7-621E-49AA-AFBD-4EBFD7285EDB"} {set hiero/track_guid 
"CC63567F-42F9-408D-B710-027864B23E2F"} {set "hiero/tags/Nuke Project File 
2015/06/30 14:04:23/description" "Nuke Project File"} {set 
hiero/sequence/timecode "[make_timecode 00:00:00:00 24 1008]"} {set 
"hiero/tags/Nuke Project File 2015/06/30 14:00:23/localtime" 
"time.struct_time(tm_year=2015, tm_mon=6, tm_mday=30, tm_hour=14, tm_min=0, 
tm_sec=23, tm_wday=1, tm_yday=181, tm_isdst=0)"} {set "hiero/tags/Nuke Project 
File 2015/06/30 14:04:23/script" 
"/tmp/S07_040/nuke/script/E1_S07_040_comp_v01.nk"} {set "hiero/tags/Nuke 
Project File 2015/06/30 14:00:23/description" "Nuke Project File"} {set 
"hiero/tags/Nuke Project File 2015/06/30 14:00:23" "Nuke Project File 
2015/06/30 14:00:23"} {set "hiero/tags/Copy" "Copy"} {set "hiero/tags/Nuke 
Project File 2015/06/30 14:04:23/endhandle" "0"} {set "hiero/tags/Nuke Project 
File 2015/06/30 14:00:23/appliedretimes" "1"} {set hiero/clip 
"CDL_S07_040_comp_v05"} {set "hiero/tags/Copy/note" ""} {set "hiero/tags/Nuke 
Project File 2015/06/30 14:04:23/presetid" "1c533b8a23eaaff91d859c1e47b45e09"} 
{set hiero/track "E1"} {set "hiero/tags/Nuke Project File 2015/06/30 
14:00:23/duration" "59"} {set "hiero/tags/Nuke Project File 2015/06/30 
14:03:35/starthandle" "0"} {set "hiero/tags/Nuke Project File 2015/06/30 
14:03:35/sourceretime" "1.0"} {set hiero/sequence/frame_rate "24"} {set 
"hiero/tags/Nuke Project File 2015/06/30 14:03:35/pathtemplate" 
"/tmp/{shot}/nuke/script/{track}_{shot}_comp{_nameindex}_{version}.{ext}"} {set 
hiero/sequence "FINAL OVER CUT"} {set "hiero/tags/Nuke Project File 2015/06/30 
14:03:35/localtime" "time.struct_time(tm_year=2015, tm_mon=6, tm_mday=30, 
tm_hour=14, tm_min=3, tm_sec=35, tm_wday=1, tm_yday=181, tm_isdst=0)"} {set 
"hiero/tags/Nuke Project File 2015/06/30 14:04:23/starthandle" "0"} {set 
"hiero/tags/Nuke Project File 2015/06/30 14:04:23/pathtemplate" 
"/tmp/{shot}/nuke/script/{track}_{shot}_comp{_nameindex}_{version}.{ext}"} {set 
"hiero/tags/Nuke Project File 2015/06/30 14:04:23/startframe" "8"} {set 
hiero/shot "S07_040"} {set "hiero/tags/Nuke Project File 2015/06/30 
14:00:23/starthandle" "0"} {set "hiero/tags/Nuke Project File 2015/06/30 
14:00:23/note" ""} {set "hiero/tags/Nuke Project File 2015/06/30 
14:04:23/frameoffset" "0"} {set "hiero/tags/Nuke Project File 2015/06/30 
14:03:35" "Nuke Project File 2015/06/30 14:03:35"} {set "hiero/tags/Nuke 
Project File 2015/06/30 14:04:23/path" 
"/tmp/S07_040/nuke/renders/E1_CDL_S07_040_comp_v05.%06d.dpx"} {set 
"hiero/tags/Nuke Project File 2015/06/30 14:00:23/presetid" 
"710130a0d4c080e5684c3f41e413ea3c"} {set "hiero/tags/Nuke Project File 
2015/06/30 14:03:35/startframe" "8"} {set "hiero/tags/Nuke Project File 
2015/06/30 14:03:35/endhandle" "0"}}
}
FrameRange { 
 last_frame 66
 xpos 1060
 first_frame 8
 ypos 376
 label "Set frame range to [knob first_frame] - [knob last_frame]"
}
Constant { 
 xpos 1220
 last 7
 format "2048 857 0 0 2048 857 1 CDL_output"
 ypos 428
 label "fill gap [value first] - [value last]"
 channels "none"
 first 0
}
AppendClip { 
 inputs 2
 xpos 1060
 ypos 428
 meta_from_first "false"
 firstFrame 0
}
ModifyMetaData { 
 xpos 1060
 ypos 546
 metadata {{set hiero/sequence/timecode "[make_timecode 00:00:00:00 24 8]"}}
}
Constant { 
 xpos 1220
 last 66
 format "2048 857 0 0 2048 857 1 CDL_output"
 ypos 586
 label "Background"
 channels "rgb"
 first 0
}
Copy { 
 metainput "All"
 inputs 2
 xpos 1060
 ypos 586
 label "E1"
 channels "all"
}
AddTimeCode { 
 useFrame "true"
 xpos 1060
 frame 0.0
 ypos 1047
 fps 24
 startcode "10:34:53:19"
 metafps "false"
}
ModifyMetaData { 
 xpos 1060
 ypos 1087
 metadata {{set hiero/project "test"} {set "hiero/tags/Copy" "Copy"} {set 
"hiero/tags/Copy/event" "3"} {set hiero/shot_tag_guid "None"} {set 
"hiero/tags/Copy/note" ""} {set hiero/project_guid 
"77E45639-AFBA-4B25-907C-2E2DFF5E8A13"} {set input/frame_rate "24.0"}}
}
set ScriptEnd [stack 0]
Viewer { 
 viewerProcess "sRGB"
 xpos 1060
 ypos 1127
}
BackdropNode { 
 z_order 2
 xpos 60
 tile_color "0xa09797ff"
 bdheight 336
 ypos 93
 note_font_size 42
 label "<center>S07_040"
 bdwidth 241
}
BackdropNode { 
 z_order 1
 xpos 0
 tile_color "0xa04040ff"
 bdheight 509
 ypos 0
 note_font_size 42
 label "<center>E3"
 bdwidth 361
}
BackdropNode { 
 z_order 2
 xpos 470
 tile_color "0xa09797ff"
 bdheight 336
 ypos 93
 note_font_size 42
 label "<center>S07_040"
 bdwidth 241
}
BackdropNode { 
 z_order 1
 xpos 410
 tile_color "0xa04040ff"
 bdheight 509
 ypos 0
 note_font_size 42
 label "<center>E2"
 bdwidth 361
}
BackdropNode { 
 z_order 2
 xpos 880
 tile_color "0xa09797ff"
 bdheight 434
 ypos 93
 note_font_size 42
 label "<center>S07_040"
 bdwidth 501
}
BackdropNode { 
 z_order 1
 xpos 820
 tile_color "0xa04040ff"
 bdheight 705
 ypos 0
 note_font_size 42
 label "<center>E1"
 bdwidth 621
}
BackdropNode { 
 z_order 1
 xpos 910
 tile_color "0xa04040ff"
 bdheight 234
 ypos 954
 note_font_size 42
 label "<center>S07_040_Render"
 bdwidth 381
}
_______________________________________________
Nuke-users mailing list
Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

Reply via email to