Hiya, i'm playing a bit with scripting and is going fine till a certain degree. I wrote a small tcl/tk script file which loads nice in hscript via the
tk Cpath_to_script/script.tk
command.
But as soon as i include an external *.exe file such as mcp.exe it gives me an error saying something like unknown command MZ. How do i have todo something like that? I played around and i also couldn't start any houdini .exe file from within houdini. Is there a way to make something like that possible?
it doesn't recognice the unix command from within the script
when i just use unix mcp … in the houdini textport then it opens a commandline does something and closes it, but it didn't create a videofile, probably some more error messages, just goes to fast to see.
The above code would be the function i want to call when a button is pressed.
There's no procedures in hscript as it's not really Tcl so your code won't work. As for scrolling too fast, try prototyping your script using hscript. Use “hscript <hipfile>” and then run your regular textport commands.
in other words, that would mean that i have to use regular tcl to make a GUI for mcp? thought i could use the houdini integrated one.
Well if that's the case, then all the hazzle isn't worth it. I thought to write a simple script for those who have trouble using the commandline of mcp. But if i have to include regular tcl/tk in it then the hazzle is too much for such a simple tool.