• "Do something when a value is changed" in Python Node?

    r20 python
    6
    0 Votes
    6 Posts
    752 Views
    M
    Hi sorry I overlooked your answers. If you want to have something more consistent you should store it into the scene. So the things that make more sense is to store it into the basecontainer of the current GvNode. Like so import c4d def main(): if not c4d.threading.GeIsMainThread(): return bc = op.GetDataInstance() # Get an unique ID at https://developers.maxon.net/forum/pid store_value = bc[1000001] if Input1 != store_value: print "Something changed" bc[1000001] = Input1 else: print "Nothing changed" Cheers, Maxime.
  • Bug in mograph python effector default state R20

    r20 python
    4
    1 Votes
    4 Posts
    1k Views
    M
    Thanks for reporting I've created a bug report. Cheers, Maxime
  • Get/Fetch Node from an Existing Xpresso Tag

    r20 python
    3
    0 Votes
    3 Posts
    820 Views
    B
    Thanks @m_adam. Works as expected. My bad, I was looking at the documentation hierarchy erroneously (i.e c4d > modules > graphview > GvNode) Just a note: I think the if Multiply: line is supposed to be if isMultiply:. Thanks again. Have a great day ahead!
  • Mograph Camera Shader from Python

    3
    0 Votes
    3 Posts
    601 Views
    F
    Thanks that worked perfectly. I thank you both!
  • Get active object after random value

    python r19
    8
    0 Votes
    8 Posts
    1k Views
    W
    @m_magalhaes said in Get active object after random value: The problem here is that Message() is called before Main() (nothing you can changed) Hello. Thank you so much. I've understood. Yea, it works. I'd break my mind to understand it by myself. So, then I gonna optimize drawcalls (don't know how to call it another) of LaunchUpdate() func
  • 0 Votes
    4 Posts
    530 Views
    chuanzhenC
    @m_magalhaes Thanks, hope to fix it in a future release.
  • Executing action after the scene is rendered

    2
    0 Votes
    2 Posts
    433 Views
    r_giganteR
    Hi pe_matthewalexander , thanks for reaching out us. With regard to your question I suggest the following options (which strongly depend on the context you're supposed to run) implement a MessageData::CoreMessage() and check for EVMSG_RAYTRACER_FINISHED to be dispatched; use the BaseDocument::RenderDocument() to fire and control the render execution use the Remote effect as described here to have an external script being run upon rendering being completed implement your own VideoPostData (assuming you're willing to move to C++) Best, Riccardo
  • 0 Votes
    2 Posts
    491 Views
    r_giganteR
    Hi temple, thanks for reaching out us. With regard to your question, I confirm that it's not possible to switch to Python 3.x since R20 is compiled against Python 2.x. Best, Riccardo
  • Python Node Executing Twice (R20.059 Bug?)

    r20 python
    4
    0 Votes
    4 Posts
    563 Views
    M
    My workaround still works for earlier version so you don't really need to check for version but it's up to you. Cheers, Maxime.
  • Create Quicktab Radio Buttons

    r20 python
    4
    0 Votes
    4 Posts
    656 Views
    B
    @s_bach Thank you. Works as expected.
  • Updating Tool Settings?

    2
    0 Votes
    2 Posts
    540 Views
    S
    Hello, which tool do you actually want to configure? best wishes, Sebastian
  • Unable to Modify the Input Port of the Math Node

    r20 python
    3
    0 Votes
    3 Posts
    621 Views
    B
    RE: appears they need a little bit more love. Thanks for the clarification. The code works as expected!
  • Press "Yes" when document is opened?

    r20 python
    5
    0 Votes
    5 Posts
    681 Views
    B
    @s_bach RE: The dialog box is not opened when you load the document. The dialog box is opened when you try to save it using CallCommand(). Thanks for the clarification. The code you presented works as expected. Thank you!
  • Retrieving Deformed Splines

    c++ r20 sdk
    3
    0 Votes
    3 Posts
    687 Views
    J
    Thanks for the reply, it really helped me out. John
  • How ObjectData add PRIORITY and execute

    c++ r20
    3
    0 Votes
    3 Posts
    947 Views
    M
    @s_bach Thank you!
  • GetObject() on the Python Node inside the Xpresso

    r20 python
    3
    0 Votes
    3 Posts
    592 Views
    B
    @s_bach Thank you! Works as expected.
  • Print to Console for the Python Node in the Expresso Editor?

    r20 python
    4
    0 Votes
    4 Posts
    669 Views
    B
    Gotcha. Thanks for the reminder!
  • This topic is deleted!

    Moved
    3
    1
    0 Votes
    3 Posts
    25 Views
  • Plane by Python Generator

    python
    18
    0 Votes
    18 Posts
    4k Views
    M
    Yes, I'd like to see it of course. Maybe you can share it via Github so others can for and contribute to it.
  • BaseContainer equality ... are you kidding me

    c++ r20
    10
    0 Votes
    10 Posts
    2k Views
    ManuelM
    hello, oupss thanks i got the same warning and forgot to update the code here Cheers Manuel