Jump to content

Houdini and Python shell


Anton

Recommended Posts

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!

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...