Skip to content

faulknermano/CinesiteTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

This project is comprised of the following scripts

  • lang_cinesite_pyqt_test.py
  • lang_cinesite_imgseq_test.py

lang_cinesite_pyqt_test

PyQt GUI to render a sphere (using Arnold) with the option to change the colour. The Arnold log is spied to populate a text field.

Usage

This script was meant to be run in the 'main scope'.

Uses/requires the following:

Also requires modules provided in this repo:

  • ainodes.py

Other notes

The script will create a log file and the rendered image in the same location as the script.

lang_cinesite_imgseq_test

Function which finds animated sequences in a given directory and prints their frame ranges in the following format:

name: 1001-2000 (if there are no gaps)

name: 1001, 1003-1500, 1600-2000 (if there are gaps)

The format for an animated sequence is name.####.ext

e.g. /job/.../my_render_v001.1001.jpg

This function follows these basic steps:

  1. Get the file list and sort
  2. Iterate through the files and generate a dict of lists (imgseq). The keys of of the dict are the sequence names; the value is a list of low-high list-pairs. It can be described like this:
	# imgseq = {
	# 	'render_v001': [
	# 		[low_frame_int, high_frame_int]
	# 	]
	# }

Each time a frame skips more than 1 frame from the previous recorded frame, a new 'list-pair' is created and appended.

  1. Iterate through imgseq converting existing low-frame/high-frame values as formatted zfill'd ranges or single frames format into a list.

  2. Iterate through zfilled list and print into format.

Usage

Input a valid directory into the function print_frame_ranges().

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages