kni8_2k Posted November 1, 2010 Share Posted November 1, 2010 (edited) Hi there, I am trying to run some system commands on my mantra Rop during the pre-render scripts. I wanted to embed the name of the file that is being written out in to some system command that runs an operation on the file. ie: we have version controlling of files, and I would like to have the checkout/editing of that file be automatically handled by the rop. but I cannot get it to do the run the command properly. I think its the way I'm trying to reference the channel which has the name in it. `system("cmd /c vesionControler.exe edit chs('/out/Render/vm_picture')")` when I replace the chs with the full expanded path of the file it works, but I can't access the parameter live. and I guess the mistake I'm making is probably sooo simple that I can't find any documentation about the correct syntax for accessing parameters from with in strings. any help would be appreciated. Thank you. Ali. copy of same question on sidefx forum : http://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&t=20968 Edited November 1, 2010 by kni8_2k Quote Link to comment Share on other sites More sharing options...
kni8_2k Posted November 1, 2010 Author Share Posted November 1, 2010 Hi there, I am trying to run some system commands on my mantra Rop during the pre-render scripts. I wanted to embed the name of the file that is being written out in to some system command that runs an operation on the file. ie: we have version controlling of files, and I would like to have the checkout/editing of that file be automatically handled by the rop. but I cannot get it to do the run the command properly. I think its the way I'm trying to reference the channel which has the name in it. `system("cmd /c vesionControler.exe edit chs('/out/Render/vm_picture')")` when I replace the chs with the full expanded path of the file it works, but I can't access the parameter live. and I guess the mistake I'm making is probably sooo simple that I can't find any documentation about the correct syntax for accessing parameters from with in strings. any help would be appreciated. Thank you. Ali. copy of same question on sidefx forum : http://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&t=20968 sorry guys this should be in the scripts section. Reposting to scripts... cheers, a. 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.