Modify RenderData Container switches
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 02/09/2006 at 13:50, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 9.6
Platform: Windows ;
Language(s) : C.O.F.F.E.E ; XPRESSO ;---------
Ti to All, I write a script to switch on-off some bool gadgets in the render settings panel (I would like to insert to xpresso COFFE node finally).
I get the active render settings and that container datas what I would like to change. but after using the SetData function doesnt occured anything.
Can I control render settings panel from script or xpresso COFFE node?
Should I refresh something?
I copy here the whole script what I created:main(doc, op) { var rd=doc->GetFirstRenderData(); var activeRD; var rdName; var rdBit; // active render setting selection while (rd) { rdName = rd->GetName(); rdBit = rd->GetBit(BIT_ARDATA); if (rdBit == 1) break; rd = rd->GetNext(); } // select switches from bc println("NAME OF ACTUAL RENDER SETTINGS = " + tostring(rd->GetName())); var bc = rd->GetContainer(); //println(bc->GetData(RDATA_RESOLUTION)); println("- actual posteffect switch = " + tostring(bc->GetData(RDATA_POSTEFFECTS_ENABLE))); println("- actual autolight switch = " + tostring(bc->GetData(RDATA_AUTOLIGHT))); // switch off selected option gadgets in bc var result = bc->SetData(RDATA_POSTEFFECTS_ENABLE,FALSE); var result = bc->SetData(RDATA_AUTOLIGHT,FALSE); // audit the changed parameters println("- set posteffect switch = " + tostring(bc->GetData(RDATA_POSTEFFECTS_ENABLE))); println("- set autolight switch = " + tostring(bc->GetData(RDATA_AUTOLIGHT))); }
any suggestion would be cool
thanks,
fuxy -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 05/09/2006 at 04:36, xxxxxxxx wrote:
Hi all, any idea what is wrong?
regards,
Zoltan -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 05/09/2006 at 07:19, xxxxxxxx wrote:
Hy fuxi,
it is just an idea I did not try this out yet, but perhaps sending some message might help? I 'd try doc->Message(DOCUMENT_CHANGED) for example or perhaps something with MSG_UPDATE?
Like said, just an idea I do not know if it helps but I hope so.
Good luck,
Ebiwahnkenobi -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 05/09/2006 at 09:49, xxxxxxxx wrote:
Hi fuxy ,
I think you have to set the container after setting it's data
rd->SetContainer(bc);
Ciao , Frank.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 05/09/2006 at 10:39, xxxxxxxx wrote:
Hi Frank you won :)) . Thank you very much!!!
Regards,
fuxy -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 05/09/2006 at 15:27, xxxxxxxx wrote:
Hi ebiwahnkenobi, you won too, I had to use EventAdd() function...
thanks again
Regards,
fuxy