View Full Version : COFFEE question
Hi!
I should have asked this in the Maxon's SDK forum, but I can't log into it for some strange reason (I give my username and pasword but it just logs me in as a Guest and I can't post).
Anyways, a simple COFFEE question:
How can I access the ACTIVE RenderData of the document?
There are GetFirstRenderData() and various GetActive...() methods, but I would need a GetActiveRenderData() method which does not seem to exist.
Anyone know the answer?
Thanks!
Pate
|
|
H. Ikeda
05-24-2003, 03:15 PM
Hi,
RenderData is a child class of BaseList2D, where states of the item are set into 'bit'.
With GetBit(bit) function, we can know whether active or not the given render data is.
var b = RenderData->GetBit(BIT_ARDATA);
If b is true, it's the active render data.
So we have to search the active one like:
var rd = doc->GetFirstRenderData();
while(TRUE) {
if(rd->GetBit(BIT_ARDATA)) break;
rd = rd->GetNext();
}
Now rd is the active render data.
Also we can write
var rd = doc->GetFirstRenderData();
while(!rd->GetBit(BIT_ARDATA)) {
rd = rd->GetNext();
}
hope this helps.
Originally posted by H. Ikeda
Hi,
RenderData is a child class of BaseList2D, where states of the item are set into 'bit'.
...
hope this helps.
Indeed it does! THANKS!
I'm sure I would never have found that info by myself, it was very well hidden in SDK documentation!
Thanks again!
Pate
Sorry to bother you again, but I got a new problem..
I need to get the Scene Motion Blur Strength from the active render data using COFFEE.
Looks like the online COFFEE SDK on Maxon's pages has not been updated to R8.1 (the description of the RenderData container differs quite a lot from the C++ SDK, for example). I can not find the RDATA_SCENESTRENGTH item from the container, and it is not even mentioned in the C++ SDK.
Where might I find this info in R8.1?
Pate
H. Ikeda
05-25-2003, 12:12 AM
Hi,
Well...unfortunately it's a serious problem, IMO.:shrug:
I found some items in containers are not accessible in R8 COFFEE even though they are allowed described.
I have reported it in the SDK forum, and some people agreed. But I'm not sure about Maxon guys.
I think they are bugs and R8 COFFEE should be updated (because C++ SDK has been updated).
In such situations, I recommend the use of C++ SDK, if you don't have time to wait for R8.2 COFFEE (hopefully updated). :surprised
CGTalk Moderation
01-15-2006, 05:00 AM
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.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.