It needs the name of a read node as the argument. Add the below to your
menu.py so it uses your currently selected input as the arg:
nuke.menu(“Nodes").addMenu("3D").addCommand("Create Camera from Vray EXR",
"createExrCamVray.createExrCamVray(nuke.selectedNode())")
-----
Deke Kincaid
Creative Specialist
The Foundry
Mobile: (310) 883 4313
Tel: (310) 399 4555 - Fax: (310) 450 4516
The Foundry Visionmongers Ltd.
Registered in England and Wales No: 4642027
On Thu, Oct 3, 2013 at 12:38 AM, adam jones <[email protected]> wrote:
> Hi all
>
> I am trying to use this createCamVray.py to create a camera from exr
> metadata, although when I execute it I get an error.
>
> this is the error
>
> "Traceback (most recent call last):
>
> File "<string>", line 1, in <module>
>
> TypeError: createExrCamVray() takes exactly 1 argument (0 given)
>
> "
>
> wondering if any you had any ideas the python script is attached
>
> or is there a better method of getting a camera from exr metadata
>
> -adam
>
> _______________________________________________
> Nuke-users mailing list
> [email protected], http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
>
_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users