Page 1 of 1

Unqueue a render item?

Posted: February 26th, 2007, 8:10 pm
by byronnash
How do you set a render item to unqueued? I'm trying this and it doesn't seem to work.

Code: Select all

var curItem = app.project.renderQueue.item(i);
		curItem.render = false;

Posted: February 27th, 2007, 3:50 am
by matt
hmm, works here;

Code: Select all

foo = app.project.renderQueue.item(1)
// Result: [object RenderQueueItem]
foo.render = false
// Result: false
foo.render = true
// Result: true
Sure you're referring to the correct item? I thought it might be a GUI refresh problem, but it looks fine on my end. Weird.

-matt

Posted: February 27th, 2007, 4:18 pm
by lloydalvarez
Here's my function from my BG renderer script that unque's the items after it sends them to render:


Code: Select all

function unQ(){

 		var proj = app.project;
		var existingRQ = app.project.renderQueue.numItems;

		for (a = 1; a <= existingRQ; a++) {
		var curItem = app.project.renderQueue.item(a);
			if (curItem.status == RQItemStatus.QUEUED) {
				curItem.render = false; 
				}	
			}
	}

-Lloyd

Posted: February 27th, 2007, 8:24 pm
by byronnash
Got it. Thanks. Turns out that I was trying to unqueue before setting templates and filenames. I guess one of those functions automatically queues it.