検索 - User list
Full Version: Alembic visibility inside LOPs [SOLVED]
Root » Solaris and Karma » Alembic visibility inside LOPs [SOLVED]
guilhermecasagrandi
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…
guilhermecasagrandi
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?
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.
guilhermecasagrandi
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.
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?
guilhermecasagrandi
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.
guilhermecasagrandi
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!
mtucker
Glad to hear it! Thanks for reporting back.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB