Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weekly updates #5

Merged
merged 13 commits into from
Sep 12, 2022
Prev Previous commit
Next Next commit
small update with frame driver
  • Loading branch information
losanc committed Aug 28, 2022
commit 44e1fedaca7533a4533e8cbdaf9d8253ebcde041
2 changes: 1 addition & 1 deletion bseq/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def create_obj(fileseq, use_relaitve, transform_matrix=Matrix([[1, 0, 0, 0], [0,
object.BSEQ.enabled = enabled
object.matrix_world = transform_matrix
driver = object.driver_add("BSEQ.frame")
driver.driver.expression = 'frame'
driver.driver.expression = 'fmod(frame, {})'.format(len(fileseq))
if enabled:
update_mesh(meshio_mesh, object.data)
bpy.context.collection.objects.link(object)
Expand Down