Thanks, Mike for providing them, as said before be aware that if you encounter slowdown for the autocompletion and in typing in your IDE, it may come from here
Cheers,
Maxime.
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!
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.
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
@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!
@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
@m_adam
I have a handful of doc.SearchObject() so I was looking for an easier route.
I guess there is no way around it except concatenating strings.
Anyhow, thanks for the code and confirmation.
Will tag this thread as closed.
Have a great day ahead!