Jump to content
makah21803

Setting up VS Code for Houdini Python

Recommended Posts

Hi,

Im new to python, Im trying to use vscode as external editor but it really sucks at being intuitive for a beginner...

1) Im trying to add the hou.module so I can see the functions but It doesnt show the functions:

my settings.json looks like this:

{
    "python.pythonPath""C:\\PROGRA~1\\SIDEEF~1\\HOUDIN~1.287\\python27\\python.exe",
    "python.linting.pylintEnabled"false,
    "python.linting.enabled"true,
    "python.linting.flake8Enabled"true,
    "[python]":{},
    "python.jediEnabled"false,
    "python.autoComplete.extraPaths": [ "C:\\Program Files\\Side Effects Software\\Houdini 18.0.287\\houdini\\python2.7libs\\Hou.pyc" ],
}

(I tried without the [] brackets too) 

 

2) Also when I edit a .py Code tells me: Linter flake8 is not installed. And when I click Install is says: There is no Pip installer available in the selected environment. 

Can someone help?

Im using:
Windows 10
Houdini 18
VS Code v 1.41.1
Python v 2.7.15 64-bit

 

Edited by makah21803

Share this post


Link to post
Share on other sites

Not sure if you got this working yet or not, but I am using the following and it works well for me.

 

    "python.autoComplete.extraPaths": [
        "C:\\Program Files\\SideFX\\Houdini18.0.356\\houdini\\python2.7libs",
        "E:\\_unity\\_projects\\Python_Unity\\Library\\PackageCache\\com.unity.scripting.python@2.0.0-preview.6\\Python\\site-packages"
    ],
    "python.autoComplete.preloadModules": [
        "hou",
        "unity_python"
    ],
    "terminal.integrated.env.windows": {
        "PYTHONPATH": "C:\\Program Files\\Side Effects Software\\Houdini18.0.356\\houdini\\python2.7libs;E:\\_unity\\_projects\\Python_Unity\\Library\\PackageCache\\com.unity.scripting.python@2.0.0-preview.6\\Python\\site-packages",
        "PATH": "${env:PATH};C:\\Program Files\\Side Effects Software\\Houdini18.0.356\\bin"
    },
    "python.pythonPath": "C:\\Python27\\python.exe",
    "[python]": {},
    "terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\wsl.exe",

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×