Getting the current camera name to the render output path

   1836   2   0
User Avatar
Member
8 posts
Joined: Nov. 2013
Offline
Hi there,
I am rendering with redshift and I would like to add the name of the current camera to my filepath.

`chsop(“RS_renderCamera”)`

this brings me half the way to my goal but how can I get rid of the “obj/” in the string.
I am pretty solid with python but not yet in Houdini.

So if someone could give me a push in the right direction would be awesome.

Thanks,
Vincent
User Avatar
Member
106 posts
Joined: June 2011
Offline
Hi there,

You can just use the string replace to get rid of the /obj if you're sure your camera will always be at the object level.

strreplace("/obj/cam1", "/obj/", "")

-J
User Avatar
Member
8 posts
Joined: Nov. 2013
Offline
great!
thanks
  • Quick Links