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. Those are usually wrapper scripts that set environment
variables to point at the python distribution that comes with that version
of the dcc. You can set the environment externally in a way where you can
just start a normal python interpreter and import Maya, as long as it is
the compatible python version.
So if you bootstrap a compatible combination of mayapy and hython, you
might be able to import both of their core libraries.

On Thu, 11 Nov 2021, 4:25 am Totally Zen, <[email protected]> wrote:

> Hi guys, let me see if I can explain it in an easy way, without generating
> more doubts about what I want.
>
> Can I run Maya and Houdini scripts in the same process?
>
> Example... I'll just be a code in PYTHON that will need the maya
> interpreter for the pymel and hpython code of the houdini...
>
> Can I have these two or is there no such possibility?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/c7179212-45b6-4d11-ac56-fec98e67fa31n%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/c7179212-45b6-4d11-ac56-fec98e67fa31n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2JJMYadsLwgSk_7nqTUD9-_DzHcc2kyo8i8aH6NkNu9g%40mail.gmail.com.

Reply via email to