cgcris Posted July 11, 2014 Share Posted July 11, 2014 As the title says, I want to stamp the name of the hip file on the actual capture so I know where it came from. I've tried $HIPNAME.$F.jpg with no luck, hoping this is an easy one! Thanks, Cris Quote Link to comment Share on other sites More sharing options...
br1 Posted July 12, 2014 Share Posted July 12, 2014 try this : $HIP/`strreplace($HIPNAME, ".hip", "")`.exr This will puth the himpname and remove the ".hip" extension. Quote Link to comment Share on other sites More sharing options...
danw Posted July 13, 2014 Share Posted July 13, 2014 I'm guessing you may mean - how do you save with the $HIPFILE name after you've playblasted/previewed a sequence out to an mplay window? If that's the case, then I don't think $HIPFILE will have any meaning, as an mplay instance isn't directly associated with your houdini session, it's a standalone program that "listens" for output. If you want to pipeline your playblasts in a way that lets you keep track of things better, skip using the playblast tool, and use the OpenGL ROP node in the /out context instead. This has the added benefit of giving a few extra settings to tweak the quality of your playblasts, as well as the ability to output them without any of the viewport ornamentation too. Importantly, it means you can give it a path containing scene-relative variables like $HIPNAME Also, a simpler way to clip the ".hip" off of $HIPNAME is to use $HIPNAME:r - that is until you want to suffix any extra text, which will throw off the :r, and I can't find the right combination of brackets to avoid that so far. Quote Link to comment Share on other sites More sharing options...
edward Posted July 13, 2014 Share Posted July 13, 2014 echo "Before${HIPNAME:r}After" seems to work for me in the text port. Quote Link to comment Share on other sites More sharing options...
cgcris Posted July 14, 2014 Author Share Posted July 14, 2014 Thanks for the replies guys, and yes I was talking about doing it from mPlay. Since some of this captures may take a while, it's practical to see the capture happening. Thanks for the OPEN GL rop tip! Best, Cris 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.