Plugin Cafe Homepage
Forum Home Forum Home > Plugin Cafe > SDK Help
  New Posts New Posts
  FAQ FAQ  Forum Search

How to transform these button into C++code

Author
Message
  Topic Search Topic Search
zhhm156156 View Drop Down
Member
Member


Joined: 2018 Aug 09
Online Status: Offline
Posts: 5
Direct Link To This Post Topic: How to transform these button into C++code
    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
Back to Top
Andreas Block View Drop Down
Forum Moderator
Forum Moderator
Avatar

Joined: 2014 Oct 01
Location: Hannover
Online Status: Offline
Posts: 1878
Direct Link To This Post 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
Back to Top

Forum Jump Forum Permissions View Drop Down

Bulletin Board Software by Web Wiz Forums® version 9.61 [Free Express Edition]
Copyright ©2001-2009 Web Wiz

This page was generated in 0.094 seconds.