Navigation

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

    DGLopez

    @DGLopez

    0
    Reputation
    6
    Posts
    4
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

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

    Best posts made by DGLopez

    This user does not have any upvoted posts yet.

    Latest posts made by DGLopez

    Using Path Selection

    Hi,

    I'm trying to get the path of edges that connects 2 points. For that task I normally use the Path selection tool from the select menu.

    7758c646-cbb8-4209-9d09-232f86cb032b-image.png

    However, when trying to reproduce this with python code, I'm struggling to input the 2 points into the tool to get the final edge selection.
    I have tried with c4d.CallCommand(1021385) and also by checking tooledgeselection.h with no results (can't find any baseselect or vector as input for the points).

    Is there any way to do this without implementing shortest path algorithms by hand?

    Thanks,

    Daniel

    posted in Cinema 4D SDK •
    RE: Constant tracking of object position with Python

    Hello @ferdinand ,

    this example was perfect for me, thank you very much!

    posted in Cinema 4D SDK •
    RE: Constant tracking of object position with Python

    Hello @ferdinand, thanks for the quick reply and sorry for the lack of information.

    I cannot add tags to the original post but I am using windows as the operating system.
    An example of the GUI used by the already running plugin could be somewhat similar to this (I'm working on a simpler GUI but the back-end will be the same):

    60f2491b-a6f9-47e2-8a4c-106b2d3d66f5-image.png

    As you can see, when I press "add model" I get the global coordinates of the selected cube and printed in the GUI. However I would like those values (Global x, Global y and Global Z) to be updated when I drag the cube around without the need of refreshing it manually.

    I hope this clarifies the topic.

    Daniel.

    posted in Cinema 4D SDK •
    Constant tracking of object position with Python

    Hello everyone,

    I am trying to figure out if it is possible to retrieve the position of an object while you are dragging it around with the mouse. This would mean to pass the message with the instant position to an already running plugin to update dinamically the GUI.

    For the moment I thought about getting the position with a button after the mouse movement but is very annoying for the final user.

    I looked for posts regarding similar topics and I thought it could be a case for threadding or using a python tag, but I am pretty much lost here.

    Any help would be appreciated.

    Daniel

    posted in Cinema 4D SDK •
    RE: Cannot run scipy even though it is installed correctly via pip in R23

    Hello Maxime,

    first of all, thanks for the quick response. You gave me a great clue with the compiled dll version. C4D R23 is compatible with scipy 1.4.0 so the solution was to downgrade it.

    Thanks again,

    Daniel

    posted in Cinema 4D SDK •
    Cannot run scipy even though it is installed correctly via pip in R23

    Hello everyone!
    I have recently bought a C4D R23 license to overcome difficulties regarding the installation of dependent libraries in previous versions of C4D (<=R19), specially for scipy. I followed the classic steps to install both numpy and scipy with pip. You can see this here:

    C:\Program Files\Maxon Cinema 4D R23>c4dpy.exe -m pip list
    Package Version


    numpy 1.21.2
    pip 21.2.4
    scipy 1.7.1
    setuptools 58.0.4
    wheel 0.37.0

    However, when I try to import both libraries in C4D for scripting and plugins, numpy works but scipy doesn't. You can see that here:
    2a919fc3-7020-41ba-90e5-3ba38653d657-image.png

    The translation of it is "The specified module cannot be found".

    This error replicates when trying to do the same from the command prompt of c4dpy.exe

    Any help would be extremely appreciated,

    Dani

    posted in Cinema 4D SDK •