Basic Coffe help

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Search this Thread Display Modes
Old 05 May 2006   #1
Basic Coffe help

Im trying to figure out how do make a realy simple script in the script manager.
All i want to do with this script is:
1. Switch the render setting "frame" to "current frame"
2. Render to the picture viewer
3. Return the render setting "frame" to its previous value.

Being no coderhead my self i have only figured to how to issue callcommand(12099) to render to the picture viewer :-)
Ive tried to look into the SDK but its way over my head.
So any help would be extremly valuable :-)

Latest STUDIO version | Mac Pro 2x2.6 16GB | OSX 10.8

Old 05 May 2006   #2
In COFFEE, there is the RenderData class which has most of the Render Settings, including RDATA_FRAME (which would be the drop-down list where you set CurrentFrame).

Each Document has a Render Settings list. So, get the active BaseDocument and then get the active RenderData - to get the active one, as you go through the list, check with something like:

if (RenderData->GetBit(BIT_ARDATA)) // this is the active one

Of course, if there is only one RenderData, it would be obvious.

Once you find the active RenderData, get its BaseContainer, and set the values of interest within the BaseContainer that are listed for it in the COFFEE Documentation. In order to restore the previous Frame settings, just store the current one to a variable (var) before changing it, and restore it after initiating the renderer.

Greebler | InterPoser

C4D-R16, VS2012, Xcode 4.6
Old 05 May 2006   #3
Thanks that sounds great. Ill see if i get anywhere with this :-)

Latest STUDIO version | Mac Pro 2x2.6 16GB | OSX 10.8

Old 05 May 2006   #4
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 06:36 PM.

Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.