• 0 Votes
    24 Posts
    16k Views
    ManuelM
    arff, that's really strange, I'll send you a simple example and see if the error still happen on your system.
  • SendModelingCommand() in R20 and R21

    Moved Cinema 4D SDK r20 r21 c++
    8
    0 Votes
    8 Posts
    1k Views
    Danchyg1337D
    @m_adam MODELINGCOMMANDFLAGS::NONE works! Thanks again for helping me out!
  • Question about BIT_CONTROLOBJECT

    Cinema 4D SDK c++ r21
    10
    0 Votes
    10 Posts
    1k Views
    F
    Thanks for confirming that this approach looks correct! "never use NULL to check your pointers against to or to assign it to your pointers: rather prefer using nullptr cause while the first comes from a define the second is a built-in pointer type." -Thanks, noted! "with regard to the last implementation, why not using:" -Because we only want to check the next object (obj=obj->GetNext()) if "inCache" is true. Otherwise, the function would not only check the object passed to the function and its cache, but also all subsequent objects on the same level of the hierarchy.
  • Python script for Rectangle Selection with options

    General Talk
    4
    0 Votes
    4 Posts
    710 Views
    T
    Hi Manuel and @rb_rodrigo, Many thanks for the tips about the Python console and help with the code. I'm a beginner (not even that!) in scripting, so much appreciated. It works as expected now! Cheers, Frederik
  • Cinema4D S22 Debian user experiences?

    General Talk
    7
    1 Votes
    7 Posts
    2k Views
    I
    Hello everyone. Will be ever C4D for Linux with GUI from Maxon? Not wine emulation. Sometimes want to switch linux.
  • SpecialEventAdd unpredictable timing to GUI::Command

    Cinema 4D SDK c++ r21
    11
    0 Votes
    11 Posts
    1k Views
    ManuelM
    hi, without feedback, i'll set this thread to solved tomorrow. Cheers, Manuel
  • Trigger Tag

    Cinema 4D SDK c++ r20 r21
    5
    0 Votes
    5 Posts
    624 Views
    C4DSC
    @m_magalhaes said in Trigger Tag: I though you were using a hidden BaseLink parameter on your tag to point to the other tag. Ah, didn't think about that. Clever.
  • 0 Votes
    5 Posts
    564 Views
    M
    Hi Cayring this is indeed a bug I'm going to report them and fix them (both for BaseMaterial and shader) as soon as possible If you have other cases like that please report them. I set the topic as solved, I will bump this topic once the fix will be available. Cheers, Maxime.
  • Sample a shader in 3D space

    Cinema 4D SDK c++ classic api r21 r20
    16
    0 Votes
    16 Posts
    4k Views
    fwilleke80F
    Thanks, Paul! I'll try that out Cheers, Frank
  • Hide a tab group of a resource-based GeDialog

    Cinema 4D SDK r20 r21 c++
    8
    0 Votes
    8 Posts
    1k Views
    M
    Hi Frank sorry for the delay needed for this issue, I get the time to look at it, and this is the thing I should have checked first, but either in a GeDialog with a Layout created in a script, I'm not able to hide a tab. Since you said it was working previously, could you confirm you don't want to hide only the content (in your case the 3 StaticText) but also the tab in the tab entry, isn't? If yes could you provide a code sample because I would say even in a normal case I'm not able to reproduce. import c4d class Dlg(c4d.gui.GeDialog): def CreateLayout(self): if self.TabGroupBegin(10001, c4d.BFH_SCALEFIT | c4d.BFV_SCALEFIT, tabtype=c4d.TAB_TABS): if self.GroupBegin(10010, c4d.BFH_SCALEFIT | c4d.BFV_SCALEFIT, 0, title="First Tab"): self.AddStaticText(10011, c4d.BFH_SCALEFIT | c4d.BFV_SCALEFIT, name="Text01") self.GroupEnd() if self.GroupBegin(10020, c4d.BFH_SCALEFIT | c4d.BFV_SCALEFIT, 0, title="Second Tab"): self.AddStaticText(10021, c4d.BFH_SCALEFIT | c4d.BFV_SCALEFIT, name="Text02") self.GroupEnd() self.GroupEnd() self.AddButton(10030, c4d.BFH_SCALEFIT | c4d.BFV_SCALEFIT, name="Remove First Tab") return True def Command(self, id, msg): if id == 10030: print self.HideElement(10010, True) print self.LayoutChanged(10001) return True def main(): global dlg dlg = Dlg() dlg.Open(c4d.DLG_TYPE_ASYNC) # Execute main() if __name__=='__main__': main() To me, the only way to remove a tab is to flush the complete group master of the TabGroup and re-add tabs except for the one you don't want. Cheers, Maxime.
  • Calling C4D via command line to find prefs folder

    Cinema 4D SDK r20 r21
    5
    0 Votes
    5 Posts
    671 Views
    M
    Hi, without further feedback, I'll set this thread as solved tomorrow. Cheers, Maxime
  • Real Time or Live "Edge to Spline" Object?

    Cinema 4D SDK r21 python
    4
    0 Votes
    4 Posts
    499 Views
    B
    @PluginStudent and @m_adam The plugin from @noseman works. It works for now in my use case, but correct me if I'm wrong it cannot have a priority parameter because it is a generator (?). Regards, Ben
  • Identity of C4D objects in Python

    Cinema 4D SDK
    6
    0 Votes
    6 Posts
    1k Views
    CairynC
    @m_adam Thank you for the confirmation and the reading suggestions. Just for context, this is a general conceptual question and not connected to a specific code issue. I noticed the behavior while doing some test scripts with id() and is. It is worth noting that these Python properties need to be used carefully in concert with C4D objects. (I wouldn't exactly recommend using pointer comparisons in C++ either ) I will include an "advanced" chapter in my Python/C4D book to mention this.
  • Why are my Relative Transformation Values not 0?

    Cinema 4D SDK python r21
    11
    1
    0 Votes
    11 Posts
    903 Views
    P
    The source code of the C++ version of CompareFloatTolerant() is actually available in the frameworks\cinema.framework\source\ge_ieee.cpp and/or \frameworks\core.framework\source\maxon\general_math.cpp file of the C++ SDK. I assume the Python version just calls the C++ function.
  • GetLayerObjectRoot and GeListHead

    Cinema 4D SDK python r21 classic api
    8
    0 Votes
    8 Posts
    946 Views
    CairynC
    Thanks for the confirmation. I shall treat the extra link directions as nonexistent then
  • Online Activation with Vendor Licensing System

    Cinema 4D SDK python r21
    4
    0 Votes
    4 Posts
    567 Views
    M
    Hi, without further feedback, I'll set this thread as solved tomorrow. Cheers, Maxime
  • Materials don't accept Tags?

    Cinema 4D SDK r21 python
    4
    0 Votes
    4 Posts
    746 Views
    ManuelM
    hi, without futher feedback from you i'll set this thread to solved. Cheers, Manuel
  • Howto map polygon numbers before - after split

    Cinema 4D SDK r19 r20 r21 c++
    9
    0 Votes
    9 Posts
    1k Views
    C4DSC
    @m_magalhaes Thanks for the example. I am sure this will be helpful in future, however for now I am still stuck with the classic API to remain backwards compatible. While there isn't a readily available solution to the problem, a few options have been mentioned how to handle this. As such I will set the topic as solved.
  • get initial position in python tag

    Cinema 4D SDK r19 r20 r21 classic api python
    5
    1
    0 Votes
    5 Posts
    910 Views
    ManuelM
    hi, without further feedback i'll set this thread as solved tomorrow. Cheer, Manuel