View Single Post
Old Apr 17th, 2005, 4:18 PM   #1
acab
Newbie
 
Join Date: Apr 2005
Posts: 7
Rep Power: 0 acab is on a distinguished road
how to send commands to a prompt?

I'm looking to create a python script that executes dos promt commands which launch another program that runs out of the dos shell, then run commands on that program. If someone could point me to the best mods to investigate and some example code or tutorials I'd be so greatful.

The following are a few esential commands I'm wanting to execute at the prompt:

#1. hscript file.hip #is the first command, this launches hscript and loads the file.hip as the current scene, hscript is a non gui version of a 3d ap. *.hip is a scene file we're now inside of.

#2 cd /obj/model1 #is the second command, this looks like unix but is hscript (similar to unix) and takes me into a 3d object within the *.hip scene file.

#3 opparm -d sphere1 tx #is the third command, this reads the parameter value for translation X for the sphere object.

Finaly to output the result of the third command to a file.


Is seems like it should be very simple, but I am new to scripting and need a little guidence.

Thank you in advance to anyone who can help
acab
acab is offline   Reply With Quote