Navigation

    • Register
    • Login
        No matches found
    • Search
    1. Home
    2. pyxelrigger
    3. Posts
    • Profile
    • More
      • Following
      • Followers
      • Topics
      • Posts
      • Best
      • Groups

    Posts made by pyxelrigger

    Is it possible somehow with python to change the path that for example the Open Project window will open?

    I want to develop a plugin that defines the path of the folder that the open project window will open

    posted in Cinema 4D SDK •
    RE: is it possible for me to have a plugin that modifies some function of cinema 4d?

    hi @ferdinand ,
    I also forgot to mention that there will be a button to save the checkbox configuration.

    before Render To Picture Viewer runs, a dialog with two buttons will run "go to render" and "stop"

    a7ea3cbb-8075-42ff-a26e-6ed81a946f5d-image.png

    or a simple c4d.gui.QuestionDialog() I'm still deciding

    by chance, now taking advantage of it, I already had several other doubts that I had to resort here to the forum and the solution was always something related to MSG, I don't understand anything about this subject, where can I read more about this material?

    posted in Cinema 4D SDK •
    RE: is it possible for me to have a plugin that modifies some function of cinema 4d?

    I made a plugin to show you

    would be something like this:

    a7fda023-3207-4eaa-85e1-1f7f8f1e6272-image.png
    Coquito.pyp

    posted in Cinema 4D SDK •
    RE: is it possible for me to have a plugin that modifies some function of cinema 4d?

    yeah! I am aware of this but I would like to know if it is possible to change the command

    posted in Cinema 4D SDK •
    is it possible for me to have a plugin that modifies some function of cinema 4d?

    let's say I have a script (which will become a plugin) that needs to be executed before the "Render View" function is it possible to do this with just python?

    I have no knowledge of c++ but I imagine it is possible to do this with c++

    posted in Cinema 4D SDK •
    RE: Get height and width (cm) of a camera focus area

    Hmm thank you!! It's not as difficult as I imagined I just had to make a change in the formula for some case, I used:

    x =  focaldistance*math.tan(h/2)*1
    

    96f1960e87e92c0bd8b3f677b453172d.gif

    posted in Cinema 4D SDK •
    RE: Get height and width (cm) of a camera focus area

    maybe it got a little confusing, i mean you need to get the radio aspect size

    4b66aca5-9805-4d25-9d88-0bc3f941866a-image.png

    it gives me in degrees...

    63d00bce-dd3a-4968-880a-8a5d83959750-image.png

    I imagine it's something super simple.. but I didn't find anything

    posted in Cinema 4D SDK •
    Get height and width (cm) of a camera focus area

    I would like to know if it is possible to get the height and length of field of view in cm individually from a camera

    493c8ea8-b136-4431-9ae7-cf1e62d2c497-image.png

    I see that the camera gives me values in degrees, but I need to have them in CM
    is there any way I can get these values without having to do complex calculations based on Field Of View and Focus distance?

    posted in Cinema 4D SDK •
    why the line break doesn't happen when I use self.GetString() in self.AddMultiLineEditText()

    d8e67dca-8a9c-4559-a9fd-06f4784c0fe9-image.png

    posted in Cinema 4D SDK •
    Save width and height of Dialog
    return self.dialog.Open(dlgtype=c4d.DLG_TYPE_ASYNC, pluginid=PLUGIN_ID, xpos=-2, ypos=-2, defaultw=760, defaulth=450)
    

    does anyone know if it is possible every time I open my layout, it has the same "defaultw" and "defaulth" ?

    because as a default when I change manually and after opening it again, the change you make is saved

    posted in Cinema 4D SDK •
    RE: Update button

    Thanks! seems to work well!

    the problem is that apparently it only runs on the tag, if I set the option as a UserData of my object, it doesn't work

    posted in Cinema 4D SDK •
    RE: get initial position in python tag

    Oh! Thank you! but I think you don't understand

    I need to create code similar to a PSR and I need the Maintain Original option, for that I need a "LOOK POSITION", because the python tag is executed in a loop, I need to get a position only if I activate the Maintain Original, and after that do not change the value.

    posted in Cinema 4D SDK •
    get initial position in python tag

    does anyone know how i can get my starting position? and keep locked, without changing it? how does PSR's Maintain Original do?

    60172915-6740-4cba-a153-e5d64372d03b-image.png

    posted in Cinema 4D SDK •
    Update button

    Can someone help me? changes the value of my cycle button, but does not execute it:

    ezgif-3-3662ee02cbbe.gif

    posted in Cinema 4D SDK •
    how can i get the id of each target? note: I will add more with c4d.CallButton ()

    68664532-a8c5-4eb9-9e75-88ea4e2631a6-image.png

    posted in Cinema 4D SDK •
    RE: how is it possible to check if the object is being "opened"? with python

    but that's really my intention, delete items from the scene as soon as their hierarchy is unfolded

    posted in Cinema 4D SDK •
    RE: how is it possible to check if the object is being "opened"? with python

    08d95bc8-477b-4028-aa81-5b9c5753f68f-image.png

    basically this is the algorithm that i need

    posted in Cinema 4D SDK •
    RE: how is it possible to check if the object is being "opened"? with python

    I need to check if it is being opened, and not if it is open

    posted in Cinema 4D SDK •
    RE: how is it possible to check if the object is being "opened"? with python

    @Cairyn said in how is it possible to check if the object is being "opened"? with python:

    GeListNode.GetNBit(bit)

    ohh! this worked thanks!

    but partially ... I would need something to keep checking all the time

    https://i.gyazo.com/97c4e8415eca11cf2e491c3d0ec67f8a.mp4

    posted in Cinema 4D SDK •
    how is it possible to check if the object is being "opened"? with python

    fe1f03bc-28be-4453-ae82-1c90e9b7d65f-image.png

    posted in Cinema 4D SDK •