Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 27/02/2007 at 08:46, xxxxxxxx wrote:
User Information: Cinema 4D Version: R10 Platform: Mac OSX ; Language(s) : C++ ;
--------- Hi, Is there a way to set the "save path" of Render Settings through the API? thanks.
On 27/02/2007 at 09:24, xxxxxxxx wrote:
Have a look at RenderData in the SDK documentation:
RDATA_PATH Filename Save path
and
RDATA_MULTIPASS_FILENAME Filename Multi-pass path
These (and all other rendering data) are stored in the RenderData's BaseContainer. Use RenderData::GetDataInstance() to get a pointer to it and set/get values within.
So, first you'll need to get your document and active render settings and do the magic:
// Get Active Document BaseDocument* doc = GetActiveDocument(); if (!doc) // panic! ;) // Get Active Render settings // - you can also traverse those available with // - GetFirstRenderData() and rdata->GetNext() RenderData* rdata = doc->GetActiveRenderData(); if (!rdata) // panic some more // Get pointer to RenderData's BaseContainer BaseContainer* rbc = rdata->GetDataInstance(); if (!rbc) // panic attack // Set the save path Filename renderpath = Filename("C:\Data\MyRenders"); // for instance rbc->SetFilename(RDATA_PATH, renderpath);
HTH,
On 27/02/2007 at 12:39, xxxxxxxx wrote:
very nice! thanks again!
since the isnatnce is a BaseContainer the other params can be set with SetParameter() e.g. rbc->SetParameter(DescID(RDATA_FRAMEFROM), GeData(start) );