I guess my issue is a little different than the original issue. For what I'm
attempting to do is look at all the camera's in the nuke script and see if the
file they are reading is out dated. So, if my camera is reading data from
alembic1.abc but I need to update it to alembic2.abc, I get the popup message.
So, it's not really an issue of changing mount points, I want to update the
camera in place with a script without having human interaction. Sorry if I
wasn't clear! My hope is that there would be some way to update the read from
file without the prompt, something like:
camera2['file'].setValue("alembic2.abc")
camera2['reload'].execute(dontPromptMe=True)
----- Original Message -----
| From: "Erwan Leroy" <[email protected]>
| To: "Nuke Python discussion" <[email protected]>
| Sent: Tuesday, June 9, 2015 8:54:43 PM
| Subject: Re: [Nuke-python] Updating file paths for cameras/axis
| If it's solely to migrate the script to a different system, I would
| probably try to handle that with a filenamefilter if a simple
| setValue doesn't do the trick.
| Also if you're loading in the same camera, it shouldn't change
| anything if you do destroy the animation, as it will reload the
| same. Unless you modified it, in which case you probably want to
| turn read from file off.
| On 10 Jun 2015 02:19, "Jake Richards" < [email protected] >
| wrote:
| | I'd be interested to know this as well. The closest I can get is to
| | hide the properties panel and then update the knobs, but the camera
| | doesn't re-read the new file. I've tried executing the reload
| | button
| | and also deleting any animation on the other knobs first but can't
| | get it to update without the prompt.
|
| | Jake
|
| | | From: "Simon Björk" < [email protected] >
| |
|
| | | To: "Nuke Python discussion" <
| | | [email protected]
| | | >
| |
|
| | | Sent: Tuesday, June 9, 2015 9:13:59 AM
| |
|
| | | Subject: [Nuke-python] Updating file paths for cameras/axis
| |
|
| | | Is there a way to update the file path of a camera without
| | | getting
| | | the "Destroy animation" dialog?
| |
|
| | | I know I can create a new camera with nuke.createNode('Camera',
| | | 'file
| | | {%s}'% path), but I only need to update the file path (moving to
| | | a
| | | different system). I guess I could create a new node and
| | | reconnect/copy knob values but it seems there should be a better
| | | way.
| |
|
| | | -------------------------------
| |
|
| | | Simon Björk
| |
|
| | | Compositor/TD
| |
|
| | | +46 (0)70-2859503
| |
|
| | | www.bjorkvisuals.com
| |
|
| | | _______________________________________________
| |
|
| | | Nuke-python mailing list
| |
|
| | | [email protected] ,
| | | http://forums.thefoundry.co.uk/
| |
|
| | | http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
| |
|
| | _______________________________________________
|
| | Nuke-python mailing list
|
| | [email protected] ,
| | http://forums.thefoundry.co.uk/
|
| | http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
|
| _______________________________________________
| Nuke-python mailing list
| [email protected], http://forums.thefoundry.co.uk/
| http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python