Re: [Maya-Python] System running scripts from two different Maya and Houdini interpreters

2021-11-22 Thread Totally Zen
First thank you. Today what I'm doing is test with pytest, and I have to run command using pymel/cmd and hou. And to satisfy maya in my test I run in VSCODE the command & "../mayapy.exe" -m pytest .\test\maya And if it's houdini & "../hython.exe" -m pytest .\test\houdini I'd like not to worry

Re: [Maya-Python] System running scripts from two different Maya and Houdini interpreters

2021-11-22 Thread Marcus Ottosson
Yes it wasn’t meant to run, it was meant to communicate an idea. :) Does it make sense what it’s trying to do? Is it what you are looking for? If so, subprocess is the right module to accomplish this task. And, it’s possible you can remove the -m and it may just work as-is. ​ On Monday, 22

Re: [Maya-Python] System running scripts from two different Maya and Houdini interpreters

2021-11-22 Thread Totally Zen
I'm having this problem: C: \ Program Files \ Side Effects Software \ Houdini 18.5499 \ bin \ hython.exe: Import by file name is not supported. C: \ Program Files \ Autodesk \ Maya2018 \ bin \ mayapy.exe: Import by file name is not supported. Em sábado, 20 de novembro de 2021 às 08:05:51

Re: [Maya-Python] System running scripts from two different Maya and Houdini interpreters

2021-11-20 Thread Marcus Ottosson
I wonder whether wires have been crossed, and that the question isn’t about accessing Maya and Houdini libraries from one process, but one process calling out to both Maya and Houdini? For example, is this what you want? import hou from maya import cmds cmds.displayWarning("I'm Maya, and

Re: [Maya-Python] System running scripts from two different Maya and Houdini interpreters

2021-11-19 Thread Totally Zen
but I know it will have to be using mayapy and hython Em sexta-feira, 19 de novembro de 2021 às 18:19:43 UTC-3, justin...@gmail.com escreveu: > > > On Sat, 20 Nov 2021, 8:33 am Totally Zen, wrote: > >> Sorry for the delay, I've been very busy !!! >> >> I need to work externally with Maya and

Re: [Maya-Python] System running scripts from two different Maya and Houdini interpreters

2021-11-19 Thread Totally Zen
I need to know how to do this, look for some model to base myself on! thank you very much, i think i understand! ;) Em sexta-feira, 19 de novembro de 2021 às 18:19:43 UTC-3, justin...@gmail.com escreveu: > > > On Sat, 20 Nov 2021, 8:33 am Totally Zen, wrote: > >> Sorry for the delay, I've

Re: [Maya-Python] System running scripts from two different Maya and Houdini interpreters

2021-11-19 Thread Justin Israel
On Sat, 20 Nov 2021, 8:33 am Totally Zen, wrote: > Sorry for the delay, I've been very busy !!! > > I need to work externally with Maya and Houdini at the same time. > Then you will have to arrange to start a python interpreter with a compatible version of python to both Maya and houdini, and

Re: [Maya-Python] System running scripts from two different Maya and Houdini interpreters

2021-11-19 Thread Totally Zen
Sorry for the delay, I've been very busy !!! I need to work externally with Maya and Houdini at the same time. Em quarta-feira, 10 de novembro de 2021 às 16:50:06 UTC-3, justin...@gmail.com escreveu: > On Thu, Nov 11, 2021 at 7:25 AM Totally Zen wrote: > >> Okay, but I'm still aimless, lol >>

Re: [Maya-Python] System running scripts from two different Maya and Houdini interpreters

2021-11-10 Thread Justin Israel
On Thu, 11 Nov 2021, 8:53 am Kenneth Ibrahim, wrote: > Justin, > > You're now a Unity employee? ;-) > > Big news!! > This very second, not yet. But effectively yes, within the next month or so ;-) > On Wed, Nov 10, 2021 at 11:50 AM Justin Israel > wrote: > >> >> >> On Thu, Nov 11, 2021 at

Re: [Maya-Python] System running scripts from two different Maya and Houdini interpreters

2021-11-10 Thread Kenneth Ibrahim
Justin, You're now a Unity employee? ;-) Big news!! On Wed, Nov 10, 2021 at 11:50 AM Justin Israel wrote: > > > On Thu, Nov 11, 2021 at 7:25 AM Totally Zen wrote: > >> Okay, but I'm still aimless, lol >> what I have and I don't know if something answers what it says would be >> the poath

Re: [Maya-Python] System running scripts from two different Maya and Houdini interpreters

2021-11-10 Thread Justin Israel
On Thu, Nov 11, 2021 at 7:25 AM Totally Zen wrote: > Okay, but I'm still aimless, lol > what I have and I don't know if something answers what it says would be > the poath configured for Maya and the other for Houdini. > I'm not sure how to provide more help without better understanding your

Re: [Maya-Python] System running scripts from two different Maya and Houdini interpreters

2021-11-10 Thread Totally Zen
Okay, but I'm still aimless, lol what I have and I don't know if something answers what it says would be the poath configured for Maya and the other for Houdini. :( Em quarta-feira, 10 de novembro de 2021 às 14:12:25 UTC-3, justin...@gmail.com escreveu: > I've never tried it, but given the

Re: [Maya-Python] System running scripts from two different Maya and Houdini interpreters

2021-11-10 Thread Justin Israel
I've never tried it, but given the right settings I am guessing it should be possible. The key would be to have a compatible python major/minor version for both the Maya and Houdini versions in the same env. Usually you would bootstrap a Maya process with mayapy, or a houdini process with hython.