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

Books do not render #1

Open
richjohnson-wwt opened this issue Jul 24, 2024 · 3 comments
Open

Books do not render #1

richjohnson-wwt opened this issue Jul 24, 2024 · 3 comments

Comments

@richjohnson-wwt
Copy link

richjohnson-wwt commented Jul 24, 2024

I cloned the repo and launched the extension in Composer v2023.2.2 (105.1.2). The bookshelf renders according to the values set in UI but no books appear. There are no errors logged to the console. The book_A.usd file is under the data folder in my workspace.

@richjohnson-wwt
Copy link
Author

It is a great tutorial series otherwise.

@LarsonmAtWwt
Copy link

We determined that the books will render if we check the BookInstancers Instanceable checkmark, and it will continue rendering even if that checkmark is unchecked. I don't think this is the 'correct' solution however, and would interested in learning how to get the books to render properly.

@richjohnson-wwt
Copy link
Author

richjohnson-wwt commented Jul 25, 2024

def clearInstanceableOnBookInstancer(self):
        instancer_path = self.geom_scope_path.AppendPath("BooksInstancer")
        omni.kit.commands.execute('ToggleInstanceableCommand', prim_path=[Sdf.Path(instancer_path)])

This solves the issue. Add this code to the bottom of generator.py and call it from the generate method.

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

2 participants