Please let me ask a few questions.



  • On 11/12/2017 at 12:27, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   R18 
    Platform:   Windows  ;   
    Language(s) :     C++  ;   PYTHON  ;

    ---------
    Nice to meet you.
    I bought R18 Studio.
    Things that can not be solved even after examination have increased.
    Please let me ask a few questions.
    Although it may be rudimentary, it is very difficult to solve it because English reading and writing can not be done at all.

    1. C4D standard layout change selector not,
    For example,

    tab = FindTabPaletteName ("PaintLayer")
    tab.Active ()
    tab = FindTabPaletteName ("ContentBrowser")
    tab.Active ()
    tab = FindTabPaletteName ("TextureLayerPalette")
    tab.Active ()
    other....

    Please tell me how to implement this example.
    The standard layout change selector is slow to respond and it is very difficult to change the UI for every layout.

    2. Please tell me the ID of the command which can not be found in the command customization by mode conversion of attribute manager. I want to make a switch button.

    Project setting (ID: 12373)
    Project information (ID: 14011)
    View setting (ID: ?????)

    3. How do I access general settings?

    ???[c4d.PREF_RENDERER_THREADCUSTOM] = 7

    4. Is there a way to access the screen display history?
    For example,

    Bitmap bmp = GetActivePictureViewWindow () -> GetActiveHistoryItem ();

    I want to do something like this.

    5. How can I rotate the object visible from the camera's position in the same direction as the camera's axis?

    BaseDraw * rbd = doc-> GetRenderBaseDraw ();
    BaseObject * camera = rbd -> GetSceneCamera (doc);
    Matrix mCamera = camera -> GetMg ();
    Vector vCameraHPB = MatrixToHPB (mCamera, ROTATIONORDER_HPB);
    Matrix mCameraProjection = HPBToMatrix (vCameraHPB, ROTATIONORDER_HPB);

    BaseObject * obj = doc-> GetActiveObject ();
    Matrix mObj = obj -> GetMg ();
    Vector vXaxis = Vector (1, 0, 0);
    vXaxis = mCameraProjection * vXaxis;
    Matrix mRotateObj = RotAxisToMatrix (vXaxis, Rad (0.1));
    mObj = mObj * mRotateObj;
    obj -> SetMg (mObj);

    EventAdd ();

    Wherever the position of the camera is, the object will rotate vertically.
    This code is successful.
    However, after moving the camera, the axis of rotation is shifted for some reason.
    When examined by debugging, vXaxis correctly creates the X axis from the position of the camera, but the actual result is rotated by using the X axis of the camera position which existed at the time of first creating the object I will excuse you. Why is this?



  • On 12/12/2017 at 02:25, xxxxxxxx wrote:

    Hi,

    welcome to the Plugin Café forums 🙂

    We'll happily try to answer all of your questions, but I need to to ask you to please split these questions each into a separate thread. We are afraid, if we try to discuss all if these in this single thread, it will get a bit chaotic. And furthermore it's easier to distribute the questions in our team.
    I hope you don't mind.

    When starting the new threads and in order to speed up the process a bit, you may want to be a bit more specific. At least some of the questions are not completely clear to us.

    Here's what we don't understand:

    1. Are you talking about layout changes (as with the layout switcher on the top right of the default layout? Startup, Standard, Sculpt, BP - 3D Paint,...)? Or is it more about opening specific dialogs?

    3. Is it about accessing preferences in general or more about the specific parameter mentioned?

    4. Here I can already tell, this is not possible.



  • On 12/12/2017 at 06:51, xxxxxxxx wrote:

    I'm sorry. I made an individual thread.
    I do not know how to delete this thread.
    Thank you.


Log in to reply