Alembic visibility inside LOPs [SOLVED]

   3297   7   1
User Avatar
Member
260 posts
Joined: March 2011
Offline
Hi,

I have an alembic with objects hidden. Is the correct workflow to use the “configure primitive” LOP to change the visibility back to visible? (attached images)
I tried that without sucess…
Edited by guilhermecasagrandi - May 25, 2020 13:23:00

Attachments:
Anotação 2020-05-21 232650.png (37.3 KB)
Anotação 2020-05-21 232707.png (31.8 KB)
viz.hiplc (144.4 KB)

User Avatar
Member
260 posts
Joined: March 2011
Offline
I managed to fix with a wrangle and the function: “usd_setvisible(0, s@primpath, 1);”
One question on that: why “s@visibility = ‘visible’;” don´t work?
User Avatar
Staff
4435 posts
Joined: July 2005
Offline
I'm not able to replicate the original problem. The Configure Primitives LOP works fine for me in a similar hierarchy. Can you attach a hip file that doesn't rely on your source alembic data?

“s@visibility = ‘visible’;” doesn't work because “visible” isn't a valid token for the visibility attribue. See https://graphics.pixar.com/usd/docs/api/class_usd_geom_imageable.html#aa0dfa061a65be443436288f7406ba3db [graphics.pixar.com] and https://graphics.pixar.com/usd/docs/api/class_usd_geom_imageable.html#af47f609f24c8023ddacc6d216eaef0f3 [graphics.pixar.com]

That second method, MakeVisible, is what the Configure Primitive LOP is doing to make the child primitive visible even if some ancestor primitives are invisible.
User Avatar
Member
260 posts
Joined: March 2011
Offline
mtucker
I'm not able to replicate the original problem. The Configure Primitives LOP works fine for me in a similar hierarchy. Can you attach a hip file that doesn't rely on your source alembic data?

“s@visibility = ‘visible’;” doesn't work because “visible” isn't a valid token for the visibility attribue. See https://graphics.pixar.com/usd/docs/api/class_usd_geom_imageable.html#aa0dfa061a65be443436288f7406ba3db [graphics.pixar.com] and https://graphics.pixar.com/usd/docs/api/class_usd_geom_imageable.html#af47f609f24c8023ddacc6d216eaef0f3 [graphics.pixar.com]

That second method, MakeVisible, is what the Configure Primitive LOP is doing to make the child primitive visible even if some ancestor primitives are invisible.

Thanks for the fast reply! For the config prim LOP, can you test with the attached alembic? It´s the alembic exported from the hiplc file I´ve attached in the first post. There is a LOP net in that file too.

Attachments:
box.abc (2.7 KB)

User Avatar
Staff
4435 posts
Joined: July 2005
Offline
That file still works fine for me.

Is the scene graph tree definitely showing the stage after applying the configure primitives LOP? And the box isn't showing up in the viewport?

What version of Houdini are you running?
User Avatar
Member
260 posts
Joined: March 2011
Offline
mtucker
That file still works fine for me.

Is the scene graph tree definitely showing the stage after applying the configure primitives LOP? And the box isn't showing up in the viewport?

What version of Houdini are you running?

Yes, the scene graph shows that the prims are invisible (attached file).
I´m on build 456. I´ll update to see if it was the problem.

Attachments:
Anotação 2020-05-22 145335.png (772.1 KB)

User Avatar
Member
260 posts
Joined: March 2011
Offline
mtucker
That file still works fine for me.

Is the scene graph tree definitely showing the stage after applying the configure primitives LOP? And the box isn't showing up in the viewport?

What version of Houdini are you running?

Just confirming that, on build 473 the configure primitive LOP is working and changing the prim visibility.

Thanks!
User Avatar
Staff
4435 posts
Joined: July 2005
Offline
Glad to hear it! Thanks for reporting back.
  • Quick Links