Navigation

    • Register
    • Login
    • Search
    • Categories
    1. Home
    2. mfersaoui
    M
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    mfersaoui

    @mfersaoui

    0
    Reputation
    93
    Posts
    54
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    mfersaoui Follow

    Posts made by mfersaoui

    • RE: How to add Layers Shader - C++

      @s_bach

      Thank you.

      posted in Cinema 4D Development
      M
      mfersaoui
    • RE: How to add Layers Shader - C++

      @r_gigante

      I have another question, is it possible to edit the Blur Offset and Blur Scale of shader via c++?

      shader-blur.jpg

      Thanks.

      posted in Cinema 4D Development
      M
      mfersaoui
    • RE: How to add Layers Shader - C++

      @r_gigante
      Hi Riccardo,
      Thank you, I will try to import my material from a scene file.

      posted in Cinema 4D Development
      M
      mfersaoui
    • How to add Layers Shader - C++

      Hello,

      How to add Layers Shader that contain two layers (Bitmap shader and Hue/Saturation/Lightness effects) with HSL -100 %.

      BaseMaterial *Mat = BaseMaterial::Alloc(Mmaterial);
      if (!Mat)
      	return maxon::OutOfMemoryError(MAXON_SOURCE_LOCATION);
      
      BaseContainer *Data = Mat->GetDataInstance();
      if (!Data)
      	return true;
      
      BaseShader* bsXlayer = BaseShader::Alloc(Xlayer);
      if (!bsXlayer)
      	return false;
      
      Data->SetLink(MATERIAL_ENVIRONMENT_SHADER, bsXlayer);
      Mat->InsertShader(bsXlayer);
      

      Thanks.

      posted in Cinema 4D Development
      M
      mfersaoui
    • RE: Enable/Disable parameters in the Attribute Manager by their parent Group ID

      @zipit

      Hi,

      Sorry I forgot to mention that I'm working in C++.
      Never mind, after testing the Classic Method I noticed that is simple and not take lot of lines of code. So, I will just use the classic method

      Thanks again.

      posted in Cinema 4D Development
      M
      mfersaoui
    • RE: Enable/Disable parameters in the Attribute Manager by their parent Group ID

      @zipit
      Hi,

      I thought to use list or dictionary of elements to enable/disable them, I thought it was possible to automatically get all elements ids inside an group and then enable/disable them.

      Thank you for your help.

      posted in Cinema 4D Development
      M
      mfersaoui
    • Enable/Disable parameters in the Attribute Manager by their parent Group ID

      Hello,

      Is it possible to enable/disable parameters in the Attribute Manager by their parent group id (enable/disable all the Description Resource inside an group). I don't want to do enable/disable parameters separately one by one in the NodeData::GetDEnabling().

      Thanks.

      posted in Cinema 4D Development
      M
      mfersaoui
    • RE: Visual Studio - Debugging Plugin Error

      @Cairyn Thank you so much, this has solved the problem.

      posted in Cinema 4D Development
      M
      mfersaoui
    • RE: Visual Studio - Debugging Plugin Error

      @Cairyn said in Visual Studio - Debugging Plugin Error:

      Linker/Debugging

      Here is screenshot of the Linker/Debugging panel:

      linker_debugging_options.jpg

      posted in Cinema 4D Development
      M
      mfersaoui
    • RE: Visual Studio - Debugging Plugin Error

      @Cairyn
      Hi,

      I had already set Cinema4D as the debugging host program.

      I don't understand what mean the Command Arguments that you used in your screenshot, is it the path to the preferences folder? I tried this: g_prefspath="C:\Users\ComputerName\AppData\Roaming\MAXON\Cinema 4D R19_BFE04C39"
      but I get the same error message.

      debugging_options.jpg
      general_options.jpg

      posted in Cinema 4D Development
      M
      mfersaoui