Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[usdview] Support for pasting & executing multi-line text in python interpreter. #1117

Closed
moddyz opened this issue Feb 17, 2020 · 1 comment

Comments

@moddyz
Copy link
Contributor

moddyz commented Feb 17, 2020

Description of Issue

usdview is an excellent tool for presentations and developer iteration.

One feature which would be really nice to have is the ability to paste & execute multi-line python code into the interpreter.

Currently, the multi-line pastes are not executed.

Steps to Reproduce

  1. cd to the root of the USD repository.
  2. usdview ./pxr/usd/usdGeom/testenv/testUsdGeomSubset/Sphere.usda
  3. Select the green, blue, and red GeomSubsets in the outliner.
  4. Open python interpreter.
  5. Copy the following multi-line text, paste into the interpreter, and hit return:
for prim in usdviewApi.selectedPrims:
    prim.GetAttribute('indices').Set([1,2,3])
  1. The code will not be executed.

Workarounds

  1. You can combine the code into 1 line.
  2. For multiple lines: you can copy, paste, and execute one line at a time.

System Information (OS, Hardware)

Ubuntu-18.04

Package Versions

19.11

Build Flags

Dynamic build.

@jilliene
Copy link

Filed as internal issue #USD-5865

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants