SpencerL Posted March 22, 2006 Share Posted March 22, 2006 Hey, I am new to hscript but basically I have a post-render script that reloads the file sop that imports the file. That works fine when I specify the absolute path to the SOP, but now that I am creating an HDA and I need to use a relative path. When I use a relative path it does not seem to work. here is my syntax for absolute path: opparm -C /obj/geo1/file3 reload 1 <Works Fine> here is my syntax for relative path: opparm -C ../file3 reload 1 <Does not work> I know that I could do a opcf command to switch to that path, but wont help me since Im creating an HDA and therefore do not know the exact path that it will be placed in. what am I doing wrong? Thanks -Spencer Quote Link to comment Share on other sites More sharing options...
RickWork Posted March 23, 2006 Share Posted March 23, 2006 Hello, try `oppwf()` opparm -C `oppwf()` reload 1 Quote Link to comment Share on other sites More sharing options...
SpencerL Posted March 23, 2006 Author Share Posted March 23, 2006 Hello,try `oppwf()` opparm -C `oppwf()` reload 1 25879[/snapback] Of course! Like I said, I am a total amature when it comes to hscript. Thanks again Rick. Spencer Quote Link to comment Share on other sites More sharing options...
RickWork Posted March 23, 2006 Share Posted March 23, 2006 Of course! Like I said, I am a total amature when it comes to hscript. Thanks again Rick.Spencer 25894[/snapback] no worries, I'm a newbie when it comes to hscript. I never know when to enclose my variables in quotes or when not too. 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.