Writing frames with different numbering

31 views
Skip to first unread message

noire...@gmail.com

unread,
Nov 19, 2013, 8:13:47 PM11/19/13
to tuttleo...@googlegroups.com
Is it possible to do something like read frames 0-100, then write frames 50-100 in a subfolder using sam do?
It's possible to do it with sam cp and sam mv with --output-first I believe, but I can't find this for sam do.
The reason I can't just use mv or cp is because there are nodes that will need to go inbetween the read and write nodes.
Thank you.

noire...@gmail.com

unread,
Nov 19, 2013, 8:16:56 PM11/19/13
to tuttleo...@googlegroups.com
Sorry, meant to say it will write frames 50-150.

Fabien Castan

unread,
Nov 20, 2013, 4:29:48 AM11/20/13
to tuttleo...@googlegroups.com
Hi,

This is not an option of sam-do, but there is a node to do that: timeshift. For sam-do, it's a just retime node.
sam do r input-###.png // timeshift 50 // w output-###.png

This allows you to choose where you want to modify the time into the graph. For example, if you write the time on the image:
sam do r input-###.png // timeshift 50 // text text="str(tuttleArgs().time)" expression=1 // w output-###.png
It will write 60 on the "output-060.png" image.

And if you put the timeshift at the end, it will write the source time:
sam do r input-###.png // text text="str(tuttleArgs().time)" expression=1 // timeshift 50 // w output-###.png
It will write 10 on the "output-060.png" image.

Regards,
Fabien



2013/11/20 <noire...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "tuttleofx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tuttleofx-use...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

noire...@gmail.com

unread,
Nov 21, 2013, 12:05:40 AM11/21/13
to tuttleo...@googlegroups.com
Thank you for your quick reply. I tried it and it works as I hoped.
I also have a similar follow-up question. Is it also possible to read in an image and stretch that into a sequence of 50 of all the same frames?

Marie Fétiveau

unread,
Nov 21, 2013, 5:06:13 AM11/21/13
to tuttleo...@googlegroups.com
Hello !

Yes, you can totally do that :
sam do r imageIn.ext // w seq###.ext // --range 0,50

++

Marie

noire...@gmail.com

unread,
Nov 21, 2013, 7:02:02 PM11/21/13
to tuttleo...@googlegroups.com
Hm, not sure if I did something wrong, but when I tried it out it gets stuck after the read. I see:
>-- imageIn.ext
_
And the cursor sits under it blinking.

noire...@gmail.com

unread,
Nov 21, 2013, 7:54:54 PM11/21/13
to tuttleo...@googlegroups.com
I guess it just didn't like the png file I was testing with. I tried again with a tif file and it worked. I appreciate the help!

Marie Fétiveau

unread,
Nov 22, 2013, 4:01:30 AM11/22/13
to tuttleo...@googlegroups.com
Hello !

If you're using Windows 7 build, there's indeed some problems with png and exr.
I have to debug some things here.

Thanks for your feedbacks, they are importants for the project.

Cheers,

Marie
Reply all
Reply to author
Forward
0 new messages