first_frame = int(pm.Env().getMinTime())
last_frame = int(pm.Env().getMaxTime())
pm.addAttr(new_cam, longName = 'first', attributeType = 'short')
pm.addAttr(new_cam, longName = 'last', attributeType = 'short')
new_cam.first.set(int(first_frame))
new_cam.last.set(int(last_frame))
More than 1 year has passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme