Navigation

    • Register
    • Login
    • Search
    1. Home
    2. d_schmidt
    D

    d_schmidt

    @d_schmidt

    1
    Reputation
    102
    Posts
    130
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

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

    Best posts made by d_schmidt

    RE: GetRealSpline() not returning a result

    Hi, Maxime, I'm trying to be able to browse through every point, the tangents of those points, and the segments they belong to. It seems like a LineObject wouldn't help me get the tangents or the spline point locations so I think I would need the actual SplineObject.

    I want to output a SplineObject, taking in the input splines points, tangents, and segments to be able modify it and return something different.

    I hope that clears it up,
    Dan

    posted in Cinema 4D SDK •

    Latest posts made by d_schmidt

    RE: Volume Object Example

    Thanks! That worked for me!

    Dan

    posted in Cinema 4D SDK •
    RE: Volume Object Example

    Hi Ferdinand,

    Thanks for the reply!

    When you said to add volume.framework, did you mean like this? I'm working from the SDK examples for this test.

    // Supported platforms - can be [Win64;OSX]
    Platform=Win64;OSX
    
    // Type of project - can be [Lib;DLL;App]
    Type=DLL
    
    // API dependencies
    APIS=\
    asset.framework;\
    cinema.framework;\
    cinema_hybrid.framework;\
    crypt.framework;\
    core.framework;\
    command.framework;\
    image.framework;\
    math.framework;\
    mesh_misc.framework;\
    volume.framework;\
    python.framework;
    
    // C4D component
    C4D=true
    
    stylecheck.level=0 // must be set after c4d=true
    stylecheck.enum-registration=false
    stylecheck.enum-class=false
    
    // Custom ID
    ModuleId=net.maxonexample.cinema4dsdk
    
    

    It doesn't seem to me working for me here, with maxon/volume.h not being found. I've tried a few others things but none of them seem to be working. Do I need to add the framework somewhere else as well?

    Thanks again,

    Dan

    posted in Cinema 4D SDK •
    Volume Object Example

    Hello! I was trying to get the Volume Object example working that's in the SDK here:
    https://developers.maxon.net/docs/Cinema4DCPPSDK/html/page_manual_volumeobject.html

    I'm having trouble having it successfully compile though.

    The two headers I'm including:
    #include "lib_volumeobject.h"
    #include "lib_volumebuilder.h"

        BaseObject* object = static_cast<BaseObject*>(node->GetDown());
        
        // create VolumeObject
        // This example checks if the given object is a volume builder.
        // If so, it accesses the cache to get the VolumeObject.
       
        if (object == nullptr)
            return true;
        // check if VolumeBuilder
        if (object->IsInstanceOf(Ovolumebuilder) == false)
            return true;
       
        VolumeBuilder* const volumeBuilder = static_cast<VolumeBuilder*>(object);
       
        // get cache
        BaseObject* const cache = volumeBuilder->GetCache(nullptr);
        if (cache == nullptr)
            return true;
       
        // check for volume object
        if (cache->IsInstanceOf(Ovolume))
        {
          const VolumeObject* const volumeObject = static_cast<VolumeObject*>(cache);
       
          const maxon::VolumeInterface* volInterface =   volumeObject->GetVolume();
        
         const maxon::String  gridname2 = volInterface->GetGridName();
            //Error:: Member access into incomplete type 'const maxon::VolumeInterface'
         
            
            const maxon::Volume       volume = volumeObject->GetVolume();
         // Error::   No type named 'Volume' in namespace 'maxon'
            
            
          const maxon::String gridName = volume.GetGridName();
          DiagnosticOutput("Grid Name: @", gridName);
        }
    

    I'm having problems with these two bits:

    const maxon::VolumeInterface* volInterface =   volumeObject->GetVolume();
    
    const maxon::String  gridname2 = volInterface->GetGridName();
    //Error:: Member access into incomplete type 'const maxon::VolumeInterface'
             
                
    const maxon::Volume       volume = volumeObject->GetVolume();
    // Error::   No type named 'Volume' in namespace 'maxon'
    

    Is there some sort of header that I need to include or is the example out of date?

    Thanks for any help!

    Dan

    posted in Cinema 4D SDK •
    RE: Tags vanishing when Object is made Editable

    I checked it out and the issue is resolved!

    Dan

    posted in Cinema 4D SDK •
    RE: Tags vanishing when Object is made Editable

    Thanks Manuel,

    I don't seem to have access to that level of the beta, but when I do I'll be sure to test it!

    Dan

    posted in Cinema 4D SDK •
    Tags vanishing when Object is made Editable

    Hello, I'm experiencing a difference between 2023 and 2023. If I add a Constraint tag to a Cube in both versions they behave differently when made Editable.

    In 2023 when there is a Constraint tag and the Cube is made Editable the Constraint Tag remains on the now Polygon Object.

    In 2023.1 when there is a Constraint tag and the Cube is made Editable the Constraint Tag disappears on the now Polygon Object.

    I'm seeing the same behavior on one of my plugins, where is now disappears, and I don't know if this is a bug or something I need to solve for. Any idea what the cause of this would be?

    Dan

    posted in Cinema 4D SDK •
    RE: Best way to store "Bake" Information

    Hi Manuel,

    I didn't think about CopyTo being called on undo. That might be all I need then, thanks. I did a couple tweaks and as of now everything is perfect.

    Dan

    posted in Cinema 4D SDK •
    Best way to store "Bake" Information

    Hello! I had a more general question about the proper way to do something within Cinema.

    I want to have a 'Bake' button on my plugin that will do some of the heavy lifting as a single step, so that these calculations don't need to be done on a per update basis. I could create the needed data structures once and use those instead of constantly rebuilding them.

    My question is what is the best way to implement this. My initial thought was to use a BaseArray of a custom Class to store the needed data. Something along the lines of one entry per child object to keep track of relationships and choices. Is this a valid way to go about it?

    I was running into some problems with Read and Write, converting the Class to be read and written could be done though. One thing I was stumped on is that if I Free my BaseArray when the object is deleted then how would I bring it back if Undo was used?

    Thanks for any help,
    Dan

    posted in Cinema 4D SDK •
    RE: R20 and R24 Description Differences

    @m_adam Hi!

    Thanks for looking into it!

    posted in Cinema 4D SDK •
    RE: R20 and R24 Description Differences

    Hi @ferdinand,

    No worry on any delay. I did some addition checking with the description resource and I even completely removed the resource folder but I'm having the same thing happen, so that doesn't seem to be playing a part as far as I can tell.

    Dan

    posted in Cinema 4D SDK •