Jump to content

Setting up VS Code for Houdini Python


makah21803

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
Link to comment
Share on other sites

  • 2 weeks later...

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",

 

  • Like 2
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...