Open your gizmo in a text editor and change this part:


Gizmo {

TO

Group {
name name_you_want_for_your_gizmo



So basically, you change "Gizmo" for "Group" and you add another line
with "name" followed by the name you want for the gizmo

You will be able to load the gizmo like usuall, but once loaded, it will
lives in the script like Charles pointed


--
  Hugo Léveillé
  Head of 2D, MELS
  hu...@fastmail.net



On Thu, Aug 25, 2016, at 08:41, Charles Taylor wrote:
> 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[1]
>
> SPINVFX.COM[2]
>
> 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


Links:

  1. tel:4165048333
  2. http://www.spinvfx.com/
_______________________________________________
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

Reply via email to