Jump to content

Output render file naming


mapra

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/

Link to comment
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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...