mapra Posted September 17, 2018 Share Posted September 17, 2018 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/ Quote Link to comment Share on other sites More sharing options...
ikoon Posted September 17, 2018 Share Posted September 17, 2018 (edited) 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 September 17, 2018 by ikoon 1 Quote Link to comment Share on other sites More sharing options...
mapra Posted September 18, 2018 Author Share Posted September 18, 2018 This is great, thank you! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.