Python coding VSCode or Eclipse and USD

   1520   2   2
User Avatar
Member
53 posts
Joined: 7月 2013
Offline
Hi,

I try to do some python coding with Houdini and USD to learn the concepts. Unfortunately I was unable to get any code completion. A very simple script like this:
from pxr import Usd, UsdGeom


stage = Usd.Stage.CreateNew('D:/UserDatenHaggi/Documents/coding/USD/precompiled/HelloWorld.usda')
xformPrim = UsdGeom.Xform.Define(stage, '/hello')
spherePrim = UsdGeom.Sphere.Define(stage, '/hello/world')
stage.GetRootLayer().Save()
Works fine from Eclipse or VSCode with python path set to Houdini installation, but for some reason I do not get any code completion what is relly annoying. Does someone has any hints what I could to do get it? From within Houdini the code completion in the python shell works fine.
User Avatar
Member
201 posts
Joined: 7月 2015
Offline
You need Animal Logic's VS ode Usd extension for code completion to work.

https://marketplace.visualstudio.com/items?itemName=AnimalLogic.vscode-usda-syntax [marketplace.visualstudio.com]
Manuel Köster - Senior Technical Artist @Remedy Entertainment

https://www.remedygames.com/ [www.remedygames.com]
http://shadesoforange.de/ [shadesoforange.de]
https://twitter.com/ShadesOfOrange_ [twitter.com]
User Avatar
Member
53 posts
Joined: 7月 2013
Offline
Thanks, that's indeed really hepful if I want to edit USDA code directly but I want to work with python and code completion.
  • Quick Links