Re: [Nuke-python] Import fbx via PythonPanel

2012-11-04 Thread Simon Björk
n Busquets > *Sent:* Sunday, November 04, 2012 2:28 PM > *To:* Nuke Python discussion > *Subject:* Re: [Nuke-python] Import fbx via PythonPanel > > The problem with the knobChanged approach is that you're preventing other > knobChanged callbacks to be executed. > The fbx_take_

Re: [Nuke-python] Import fbx via PythonPanel

2012-11-04 Thread Nathan Rusch
GUI, you may want to throw in a call to hide your dialog as well. -Nathan From: Ivan Busquets Sent: Sunday, November 04, 2012 2:28 PM To: Nuke Python discussion Subject: Re: [Nuke-python] Import fbx via PythonPanel The problem with the knobChanged approach is that you're preventing

Re: [Nuke-python] Import fbx via PythonPanel

2012-11-04 Thread Ivan Busquets
; >> import_camera().show() >> >> def test(): >> >> filepath = "C:/Users/Simon/Desktop/A018_C001_05075H_baked.fbx" >> cam_name = "Camera_A018_C001_05075H" >> c = nuke.createNode('Camera2', 'file "%s"

Re: [Nuke-python] Import fbx via PythonPanel

2012-11-04 Thread Simon Björk
# Validate path, create your node here, etc. > pass > > > I don’t necessarily know if this will make a difference, but I think it’s > worth a try. > > -Nathan > > > *From:* Simon Björk > *Sent:* Sunday, November 04, 2012 1:35 PM > *To:* Nuk

Re: [Nuke-python] Import fbx via PythonPanel

2012-11-04 Thread Nathan Rusch
hink it’s worth a try. -Nathan From: Simon Björk Sent: Sunday, November 04, 2012 1:35 PM To: Nuke Python discussion Subject: Re: [Nuke-python] Import fbx via PythonPanel Hi Nathan, thanks for your reply. I'm not really sure I understand how you mean, but I tried this and got the sam

Re: [Nuke-python] Import fbx via PythonPanel

2012-11-04 Thread Simon Björk
t;fbx_node_name"].setValue(cam_name) Cheers, Simon 2012/11/4 Nathan Rusch > Have you tried using your PythonPanel subclass the same way you’re > using the simple Panel, as opposed to encapsulating your node creation code > in the class itself? > > -Nathan > >

Re: [Nuke-python] Import fbx via PythonPanel

2012-11-04 Thread Nathan Rusch
Have you tried using your PythonPanel subclass the same way you’re using the simple Panel, as opposed to encapsulating your node creation code in the class itself? -Nathan From: Simon Björk Sent: Sunday, November 04, 2012 11:04 AM To: Nuke Python discussion Subject: [Nuke-python] Import

[Nuke-python] Import fbx via PythonPanel

2012-11-04 Thread Simon Björk
I'm trying to import an fbx file using a PythonPanel, but for some reason it doesn't work. Using forceValidate() the camera loads, but it doesn't set animation, focal etc. Strange thing is it works perfectly if I use a simple panel istead (I don't even have to use forceValidate()). Anyone have any