Anton Posted November 15, 2011 Share Posted November 15, 2011 Hi! I have some questions about working with houdini throught python shell 1. I trying to run mcbiovision script using this code: from os import path,system root = "/media/PROJECTS/02.Lift/03.MoCap_Data/" file = "Cowboy.BVH" file = path.join(root,file) system("mcbiovision -w "+file) and nothing... Terminal writes: Unable to open Cowboy.cmd for writing The interesting thing happens when i trying to use this function from the folder where Cowboy.BVH exists. antonio@antonio:/media/PROJECTS/02.Lift/03.MoCap_Data$ mcbiovision -w Cowboy.BVH everything is OK So, how can I modify my python script to play mcbiovision function from the folder where .bvh file sits? Cheers,Anton! Quote Link to comment Share on other sites More sharing options...
edward Posted November 17, 2011 Share Posted November 17, 2011 os.chdir() Quote Link to comment Share on other sites More sharing options...
Anton Posted November 17, 2011 Author Share Posted November 17, 2011 Thx, edward! Works perfectly! 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.