dee900 Posted February 10, 2007 Share Posted February 10, 2007 Is there a single API call for expanding a file string containing $HIP, $F and similar variables into its fully-qualified path? Quote Link to comment Share on other sites More sharing options...
edward Posted February 11, 2007 Share Posted February 11, 2007 Take a look at CH_Manager::expandString(). Something like this: UT_String expanded; OPgetDirector()->getChannelManager()->expandString("$F $HIP", expanded); Quote Link to comment Share on other sites More sharing options...
Jason Posted February 12, 2007 Share Posted February 12, 2007 Hey Edward, On this topic: Do you know if there is a method in the HDK to evaluate parameters to a certain depth? Why? Often we make HDAs with, say, a File SOP or a ROP which refer to/channel-reference parameters on exposed by the HDA - which'd often contain $F4's and such - and what happens is that we'd like to follow the channel reference but not expand the $F4 in the destination string. i.e., ropnet1/mantra1/picture: `chs("../../mypicture")` mypicture : "/mydir/myfile.$F4.pic" Performing a chsraw returns the string "`chs("../../mypicture")` ..and performing a chs returns the string: "/mydir/myfile.0001.pic" ..when I really want: "/mydir/myfile.$F4.pic" We have workaround for this; and it's not pretty; and it's specific to how were submit things to the farm at DD, etc. A pretty large percentage of FX-related OTL systems have this need and the trick for getting it to work is like sacred knowledge. In actual practice it would be fantastic to have the capability to specify evaluation depth and evaluation "features". chseval( parm, depth, feature ) .eg.: chseval("../../picture", 1, EVAL_NO_VARIABLES ) ..would be nice Right now I'd settle for the knowledge if the HDK can handle this currently; any idea? Quote Link to comment Share on other sites More sharing options...
edward Posted February 12, 2007 Share Posted February 12, 2007 In OP_Parameters, there's followChannelReferencesOneStep(). However, it only works for "pure" channel references (like those created by auto-linking HDA parameters). Quote Link to comment Share on other sites More sharing options...
Jason Posted February 12, 2007 Share Posted February 12, 2007 In OP_Parameters, there's followChannelReferencesOneStep(). However, it only works for "pure" channel references (like those created by auto-linking HDA parameters). That might suffice for most applications, thanks Edward. I'd think this would be useful function to expose in Houdini 9 since we do do this quite often - as I'm sure other people do. Quote Link to comment Share on other sites More sharing options...
sibarrick Posted February 12, 2007 Share Posted February 12, 2007 Personally i always split the path and the frame into two parameters on the rop - often more. Like project path, shot path, camera path, filename, frame number. The downside to that is you have to build the references inside the HDA yourself and string alll these things together, that plus there is no file picker for HDA's that only let you pick a folder and not an actual file. So my rfe related to this topic would be to have a folder picker option for file paths. Quote Link to comment Share on other sites More sharing options...
edward Posted February 12, 2007 Share Posted February 12, 2007 I don't know if you guys are directing this at me or not but if you have RFEs, you should email them into support. Quote Link to comment Share on other sites More sharing options...
dee900 Posted February 14, 2007 Author Share Posted February 14, 2007 OPgetDirector()->getChannelManager()->expandString("$F $HIP", expanded); Thanks Edward - that does it. A general Odforce question to Jason, is it possible to have email notification of responses on by default? I couldn't find this in the personal settings ... Quote Link to comment Share on other sites More sharing options...
dee900 Posted February 14, 2007 Author Share Posted February 14, 2007 A general Odforce question to Jason, is it possible to have email notification of responses on by default? I couldn't find this in the personal settings ... Of course I found this immediately after posting. Apologies for the two needless notifications. 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.