Пример #1
0
	#
	# command construction:
	cmdextension = os.getenv('AF_CMDEXTENSION', '')

	# Check some parameters:
	if fpt < 1:
		print('fpt - frames per task - must be > 0 ( setting to 1)')
		fpt = 1

	if by < 1:
		print('by - frames step (by frame) - must be > 0 ( setting to 1)')
		by = 1

	if tempscene:
		scene = cgruutils.copyJobFile(scene, name, ext)
		if scene == '':
			sys.exit(1)

	# Initialize general parameters:
	blockname = node

	# Shake:
	if ext == 'shk':
		scenetype = 'shake'
		if cmd is None:
			cmd = 'shake' + cmdextension
		cmd += ' -exec ' + scene + ' ' + extrargs + ' -vv -t @#@-@#@'

	# Blender:
	if ext == 'blend':
Пример #2
0
            continue
    #
    # command construction:
    cmdextension = os.getenv('AF_CMDEXTENSION', '')

    # Check some parameters:
    if fpt < 1:
        print('fpt - frames per task - must be > 0 ( setting to 1)')
        fpt = 1

    if by < 1:
        print('by - frames step (by frame) - must be > 0 ( setting to 1)')
        by = 1

    if tempscene:
        scene = cgruutils.copyJobFile(scene, name, ext)
        if scene == '':
            sys.exit(1)

    # Initialize general parameters:
    blockname = node

    # Shake:
    if ext == 'shk':
        scenetype = 'shake'
        if cmd is None:
            cmd = 'shake' + cmdextension
        cmd += ' -exec ' + scene + ' ' + extrargs + ' -vv -t @#@-@#@'

    # Blender:
    if ext == 'blend':