

Zitat von Magnus am 24. Februar 2019, 23:54 UhrDoesn't seem to be too much on the topic online, but I found this:
alembicVisibility(abcPath, objectPath, sampleTime, check_ancestor=False)
→(value, isConstant)
Gets the visibility of an object. Returns
None
or a tuple of an integer and a boolean:
The first item is
0
for hidden,1
for visible, or-1
for "use the parent object’s visibility".The second item is
True
if the visibility is constant over time.If you pass
check_ancestor=True
, the function will check the visibility of ancestor objects to return a known value (0
or1
) instead of-1
as the first item.
I tried putting this in a primitive wrangle after the alembic sop, but it's not returning anything:
int @isVisible = alembicVisibility(`chs("../alembic1/fileName")`, "../alembic1", `chs("../alembic1/frame")`, check_ancestor=False);
Maybe it's not the function you where referring to?
EDIT: Missed your previous reply, thanks, really appreciate all the help! I posted on the sideFX forums as well. Fingers crossed I can find a way to get this to work 🙂
Doesn't seem to be too much on the topic online, but I found this:
alembicVisibility(abcPath, objectPath, sampleTime, check_ancestor=False)
→(value, isConstant)
Gets the visibility of an object. Returns
None
or a tuple of an integer and a boolean:
The first item is
0
for hidden,1
for visible, or-1
for "use the parent object’s visibility".The second item is
True
if the visibility is constant over time.If you pass
check_ancestor=True
, the function will check the visibility of ancestor objects to return a known value (0
or1
) instead of-1
as the first item.
I tried putting this in a primitive wrangle after the alembic sop, but it's not returning anything:
int @isVisible = alembicVisibility(`chs("../alembic1/fileName")`, "../alembic1", `chs("../alembic1/frame")`, check_ancestor=False);
Maybe it's not the function you where referring to?
EDIT: Missed your previous reply, thanks, really appreciate all the help! I posted on the sideFX forums as well. Fingers crossed I can find a way to get this to work 🙂
Zitat von RichardF am 25. Februar 2019, 0:18 UhrNo that's not what I meant. Google for "intrinsic attributes", which is not necessarily related to alembic, but can be useful in many situations.
Here is an example what I meant:
No that's not what I meant. Google for "intrinsic attributes", which is not necessarily related to alembic, but can be useful in many situations.
Here is an example what I meant:
Hochgeladene Dateien: