Basic Coffe help

Become a member of the CGSociety

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

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
  05 May 2006
Basic Coffe help

Hi
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 :-)

Regards
Bonsak
__________________
Latest STUDIO version | Mac Pro 2x2.6 16GB | OSX 10.8
http://www.racecar.no

 
  05 May 2006
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.

Robert
__________________
Greebler | InterPoser

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

Regards
Bonsak
__________________
Latest STUDIO version | Mac Pro 2x2.6 16GB | OSX 10.8
http://www.racecar.no

 
  05 May 2006
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
CGSociety
Society of Digital Artists
www.cgsociety.org

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

All times are GMT. The time now is 03:18 PM.


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