Many people prefer to use groups instead of gizmos to avoid this exact
problem. A gizmo is just the interface to the internals, and the
internals live in an external file which must be loaded.
A group is self-contained and lives inside the .nk file.
You can copy gizmos to groups, there's a command for that. It should
give you the identical thing, but fully loaded in the script.
c
On 08/25/2016 08:16 AM, Fredrik Averpil wrote:
@Ben: thanks for that. I tried it but the script is fully loaded
before the onScriptLoad callback is executed. This means that you must
open up the script once more for it to find the gizmos. This solution
doesn't work for me, as I need to be able to put the script onto a
headless renderfarm (I need the gizmos to get loaded properly upon
opening the script the first time).
@Hugo: Could you elaborate on what you mean?
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
--
SPINVFX
CHARLES TAYLOR / COMPOSITING SUPERVISOR
STUDIO/ 416-504-8333 <tel:4165048333>
SPINVFX.COM <http://www.spinvfx.com/>
CONFIDENTIALITY NOTICE: This e-mail message, including any attachments,
is for the sole use of the intended recipient's and may contain
confidential or proprietary information. Any unauthorized review, use,
disclosure or distribution is prohibited. If you are not the intended
recipient, immediately contact the sender by reply e-mail and destroy
all copies of the original message.
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python