You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like we should have to add eValueChangedReasonNatronInternalEdited to trigger the update when set from Python. Can someone else confirm this is a good solution? @YakoYakoYokuYoku@rodlie? I can't think of a case where this would hurt
eValueChangedReasonSlaveRefresh was added in this commit: f2664a2#r60978102
Could apply the change locally, although I don't know how to replicate the issue yet neither running that Python snippet, whether the script code is invoked via cli, the Python tab or elsewhere.
@devernay, managed to wrap around my mind, could replicate the issue and proved that your code was right.
Simply added a colorwheel and then run the sample Python snippet with some tweaks in a script editor tab. First try didn't work due to previewKnobToggled not being emitted as expected. Then applied the suggested change. And last try went successfully plus I could see a pixelated yet tiny color wheel on the node.
AFAICT I don't see any case that this would in fact hurt.
Activity
devernay commentedon Nov 27, 2021
Here:
Natron/Engine/Node.cpp
Line 4899 in 205ba51
It seems like we should have to add eValueChangedReasonNatronInternalEdited to trigger the update when set from Python. Can someone else confirm this is a good solution? @YakoYakoYokuYoku @rodlie? I can't think of a case where this would hurt
eValueChangedReasonSlaveRefresh was added in this commit:
f2664a2#r60978102
[-]Bug: can't enble Preview for a node with python[/-][+]Can't enable Preview for a node from Python[/+]YakoYakoYokuYoku commentedon Nov 30, 2021
Could apply the change locally, although I don't know how to replicate the issue yet neither running that Python snippet, whether the script code is invoked via cli, the Python tab or elsewhere.
YakoYakoYokuYoku commentedon Dec 6, 2021
@devernay, managed to wrap around my mind, could replicate the issue and proved that your code was right.
Simply added a colorwheel and then run the sample Python snippet with some tweaks in a script editor tab. First try didn't work due to
previewKnobTogglednot being emitted as expected. Then applied the suggested change. And last try went successfully plus I could see a pixelated yet tiny color wheel on the node.AFAICT I don't see any case that this would in fact hurt.
Node: fix enabling preview from Python #710
Node: fix enabling preview from Python NatronGitHub#710