Navigation

    • Register
    • Login
    • Search
    1. Home
    2. Rox
    R

    Rox

    @Rox

    0
    Reputation
    3
    Posts
    50
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    • Profile
    • More
      • Following
      • Followers
      • Topics
      • Posts
      • Best
      • Groups
    Rox Follow

    Best posts made by Rox

    This user does not have any upvoted posts yet.

    Latest posts made by Rox

    2024 Conversion questions

    Hello,

    I have a few questions about 2024 conversion that I am combining into 1 post.
    The plugin is a object data plugin with resource description.

    1. GetDParameter bitmapbutton
    Bool GetDParameter(GeListNode *node, const DescID &id, GeData &t_data, DESCFLAGS_GET &flags)
    {
    	
    	switch (id[0].id) 
    	{
    		case MY_BITMAP:
    		{
    			Int32 dirty = 0;
    			BitmapButtonStruct bbs(static_cast<BaseObject*>(node), id, dirty);
    			t_data = GeData(CUSTOMDATATYPE_BITMAPBUTTON, bbs);  // ERROR
    			flags |= DESCFLAGS_GET::PARAM_GET;
    			break;
    		}
    
    1. BaseSelect
    BaseSelect* bs;
    
    			if (polygonCnt > 0)
    			{
    				SelectionTag* sTag = SelectionTag::Alloc(Tpolygonselection); 
    myObj->InsertTag(sTag, 0);
    			
    		
    				bs = sTag->GetBaseSelect();   // ERROR
    
    1. IncludeExclude
    InExcludeData* myList= (InExcludeData*)bc->GetCustomDataType(MY_ID, CUSTOMDATATYPE_INEXCLUDE_LIST);   // ERROR
    

    Thanks.

    posted in Cinema 4D SDK •
    RE: Simple asset browser example

    Hi,

    Example code on how to convert a folder structure into a GeListNode hierarchy, and how to use it in the TreeViewFunctions context would be helpful.

    posted in Cinema 4D SDK •
    Simple asset browser example

    Hi,

    I am looking for example code on how to create a TreeView GUI resembling (a bare minimum) S24 asset browser.

    Basically I would like to specify a folder inside my plugin folder and browse for folders inside it.
    This I can do using BrowseFiles
    Typically this is a 1 level search, so no recursion is required.

    Inside each folder, there is a number of images.

    The TreeView should show a list of these folders. When the user selects an item from the TreeView list, the images inside each folder should be displayed respectively. The user then would invoque a command when an image is clicked (or double clicked).

    I already looked into TreeView Made Simple 1 and TreeView Made Simple 2

    I would convert the found folders into a BaseArray and navigate inside it.
    But where should the array be created, inside TreeViewFunctions or somewhere else, and more importantly, how to display the image content of each folder ?

    Thanks for any help on the subject.

    posted in Cinema 4D SDK •