Jump to content
mapra

Output render file naming

Recommended Posts

Hey!

I was wondering if anybody knows how to bring the camera name into the file name when rendering with redshift.

I was trying to use the following today: "$HIP/render/$HIPNAME`_``chsop("RS_renderCamera")``_`$F4.exr"

the problem is that `chsop("RS_renderCamera")` gives you not only the camera name but puts the /obj in the beginning: "/obj/cam1". So when you render, instead of naming the file "Name_01_cam1_0001" it creates a subfolder called "obj"

I was wandering if there is a possibility to strip the beginning of a string or another solution to get the camera name into the file name. Something like $CAMERANAME would be nice :)

Best, M

 

I tried this one, it didn't work for me, I guess its for mantra?!

https://www.sidefx.com/forum/topic/55206/

Share this post


Link to post
Share on other sites

Hi Marian,

EDIT: sorry for the previous code, this one is better:

$HIP/render/${HIPNAME}_`opname(chs("RS_renderCamera"))`_$F4.exr

Those curly brackets are needed, because without them $ searches for the variable HIPNAME_ ... because _ can be included in the variable name.

 

Edited by ikoon
  • Thanks 1

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

×