Skip to content
This repository has been archived by the owner on Sep 24, 2020. It is now read-only.

Avoid hardcoding import paths #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions blender_scripts/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
import os
import shutil

import sys
sys.path.append('C:\\Users\\justi\\Documents\\CodeProjects\\Primer\\blender_scripts')
sys.path.append('C:\\Users\\justi\\Documents\\CodeProjects\\Primer\\blender_scripts\\tools')
import helpers
from .tools import helpers

overwrite = True

Expand Down Expand Up @@ -46,6 +43,7 @@ def render_with_skips(start, stop):
# loop through each animated object and find its
# animated frames. then remove those frames from
# a set containing all frames, to get still frames.
fr_prev = None
still_frames = set(render_range)
for obj in all_obj_fcurves.keys():
obj_animated_frames = []
Expand Down