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

Error of "Cannot edit hidden object" during export #311

Open
GCChen97 opened this issue Sep 3, 2024 · 1 comment
Open

Error of "Cannot edit hidden object" during export #311

GCChen97 opened this issue Sep 3, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@GCChen97
Copy link
Contributor

GCChen97 commented Sep 3, 2024

Describe the bug

  File "infinigen/infinigen/tools/export.py", line 124, in split_glass_mats
    bpy.ops.object.mode_set(mode="EDIT")

Steps to Reproduce

Just generate an indoor scene and export it.

What version of the code were you using?

Tell us the commit & commit hash from git log

What command did you run?

python -m infinigen_examples.generate_indoors --seed 2 --task coarse --output_folder outputs/indoors/coarse -g fast_solve.gin singleroom.gin performance/simple.gin -p compose_indoors.terrain_enabled=False compose_indoors.hide_other_rooms_enabled=True compose_indoors.skirting_floor_chance=0.0 compose_indoors.skirting_ceiling_chance=0.0 compose_indoors.restrict_single_supported_roomtype=True

python -m infinigen.tools.export --input_folder outputs/indoors/coarse --output_folder outputs/coarse-2 -f usdc -r 1024 --omniverse

What are your FULL output logs?

Provide the FULL output logs from your command as a txt file.

If this is your first time running Infinigen, what are the full install logs?**

Run pip install -v -e . > logs.txt 2>&1 and send logs.txt as an attachment.

Platform

  • OS & OS Version: Ubuntu 22.04
  • GPU (?) : RTX3090
  • GPU Driver Version (?) : 535.183.01
  • RAM (GB): 128GB

Additional context

I edited the code:

                bpy.context.view_layer.objects.active = obj
                if obj.hide_viewport:
                    continue
                bpy.ops.object.mode_set(mode="EDIT")

and it can run. But I am not sure if this change is valid and legal.

@GCChen97 GCChen97 added the bug Something isn't working label Sep 3, 2024
@David-Yan1
Copy link
Contributor

Likely this same issue as #288, I wrote a fix that will be merged eventually

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants