How do I know what frame to start and end of alembic?

   1801   4   0
User Avatar
Member
2 posts
Joined: Oct. 2022
Offline
I import some alembic to Houdini. How do I know what frame to start and end?
User Avatar
Member
21 posts
Joined: Dec. 2014
Offline
I don't know if you can. Just move in the timeline until the object starts and stops moving.
It should have the start anywhere between 1 and 1001. 1001 is the shot's first frame in many companies so maybe what you have is following that convention.
User Avatar
Member
575 posts
Joined: Nov. 2005
Offline
You can middele click on the node in the networkview

or if You need it automated:

import _alembic_hom_extensions as abc
time_range = abc.alembicTimeRange(archive_path)
start_frame = timerange[0]*hou.fps()
end_frame = timerange[1]*hou.fps()
the values are the actual samples, so if You have motion samples they have a additional step
Edited by sanostol - Nov. 30, 2022 05:12:10
User Avatar
Member
2 posts
Joined: Oct. 2022
Offline
sanostol
You can middele click on the node in the networkview

or if You need it automated:

import _alembic_hom_extensions as abc
time_range = abc.alembicTimeRange(archive_path)
start_frame = timerange[0]*hou.fps()
end_frame = timerange[1]*hou.fps()
the values are the actual samples, so if You have motion samples they have a additional step
sanostol
You can middele click on the node in the networkview

or if You need it automated:

Thanks 
import _alembic_hom_extensions as abc
time_range = abc.alembicTimeRange(archive_path)
start_frame = timerange[0]*hou.fps()
end_frame = timerange[1]*hou.fps()
the values are the actual samples, so if You have motion samples they have a additional step
User Avatar
Member
8538 posts
Joined: July 2007
Online
One inconvenientce may be that those functions return timesample at 0 for static meshes

Therefore if the real animation range (in frames) is 1001-1100
And if you also have some static meshes, it will return something like 0-1100, simply not the actual animation range
Tomas Slancik
FX Supervisor
Method Studios, NY
  • Quick Links