Print Page | Close Window

How to transform these button into C++code

Printed From: Plugin Cafe
Category: Plugin Cafe
Forum Name: SDK Help
Forum Discription: COFFEE, C++ and Xpresso Q&A
URL: http://www.plugincafe.com/forum/forum_posts.asp?TID=14357
Printed Date: 2018 Sep 22 at 5:31pm
Software Version: Web Wiz Forums 9.61 - http://www.webwizforums.com


Topic: How to transform these button into C++code
Posted By: zhhm156156
Subject: How to transform these button into C++code
Date Posted: 2018 Aug 09 at 9:57pm

User Information:

Cinema 4D Version:   19 
Platform:   Windows  ;   
Language(s):     C++  ;   

---------

I am writing a plugin about controling objects are hided.And i almost finish it except for the last problem.
these objects that i choosed are successed to entering the InExcludeData *List,and it just like the picture.But i found that these objects are not to be hided when rendering,and right now i find the solution to solve the problem(disable the button in the picture:  the second button from left to right on on the right side of the abject in LIGHT_EXCLUSION_LIST),But i try so much and can not disable the button on C++code, anyone know how to do it on C++code ?      

show me the code:



BaseObject* HideLightWall = BaseObject::Alloc(Ocube);
HideLightWall = (BaseObject*)cube->GetClone(COPYFLAGS_NO_HIERARCHY, nullptr);
HideLightWall->SetName(roomFbxObject->fbxName + " - hidewall");
HideLightWall->SetAbsPos(Vector(0, 20, 0));
HideLightWall->SetAbsRot(Vector(0, 0, 0));
HideLightWall->SetAbsScale(Vector(1, 1, 1));
BaseTag* CompositingTag = HideLightWall->MakeTag(Tcompositing);
CompositingTag->SetParameter(COMPOSITINGTAG_SEENBYTRANSPARENCY, false, DESCFLAGS_SET_0);
CompositingTag->SetParameter(COMPOSITINGTAG_SEENBYCAMERA, false, DESCFLAGS_SET_0); 
//CompositingTag->SetParameter(COMPOSITINGTAG_CASTSHADOW, false, DESCFLAGS_SET_0);
BaseObject* baseObj = doc->SearchObject(roomFbxObject->fbxName);
HideLightWall->InsertUnder(baseObj);
BaseContainer *obj = light->GetDataInstance();
InExcludeData *List = (InExcludeData*)obj->GetCustomDataType(LIGHT_EXCLUSION_LIST, CUSTOMDATATYPE_INEXCLUDE_LIST);
baseObj->SetParameter(RENDERPROGRESSTYPE_GLOBALILLUMINATION,false, DESCFLAGS_SET_0);
List->InsertObject(HideLightWall, 1);
light->SetParameter(LIGHT_EXCLUSION_MODE, LIGHT_EXCLUSION_MODE_EXCLUDE, DESCFLAGS_SET_0);fdd



Replies:
Posted By: Andreas Block
Date Posted: 2018 Aug 10 at 5:38am
Hello,

welcome to the Plugin CafĂ© forums Smile

Unfortunately the referenced screenshot/image is not showing. I'm really not sure, what you are trying to do or asking for. Sorry! Can you try to explain it once more in different words?
What's your native language? Here in SDK Team we can also process German, Spanish, French and Italian. Please, not in this forum, but you could write a mail to us (sdk_support at maxon.net) in one of these languages, if it helps.



-------------
Cheers,
Andreas
SDK Support Engineer



Print Page | Close Window

Bulletin Board Software by Web Wiz Forums® version 9.61 - http://www.webwizforums.com
Copyright ©2001-2009 Web Wiz - http://www.webwizguide.com