Jump to content
junvfx

hscript imgsave how to use ?

Recommended Posts

I want to use mplay save sequence image to disk. I find hscript imgsave can do it.

5e9fbbbdd0a4c_.JPG.851badf52b31e482240216bb42af23b6.JPG

the help -a tag can render all frames. actually not. only save one frame at a time.

Texport command :

                       imgsave -a -f 1000 1100 -i 1 C:/test/test.$F4.jpg

I want save sequence image to disk. Is there any other way.

please

thanks

Edited by junvfx

Share this post


Link to post
Share on other sites

I only find a for loop can solve this problem,

for i = 1000 to 1100
	imgsave -f $i $i C:/test/test.$i.jpg
end

 

Share this post


Link to post
Share on other sites

In case anyone else runs across this in the future, you need to escape the $F like so:

 

imgsave -a "/tmp/test/test1.\$F.jpg"

 

And if running from Python

hou.hscript("imgsave -a "/tmp/test/test1.\$\F.jpg")

 

Edited by jamesr

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×