yes it can. > On 4 Jun 2015, at 10:34, Ron Ganbar <[email protected]> wrote: > > Can this be solved with a Find/Replace in a text editor? > > > > Ron Ganbar > email: [email protected] <mailto:[email protected]> > tel: +44 (0)7968 007 309 [UK] > +972 (0)54 255 9765 [Israel] > url: http://ronganbar.wordpress.com/ <http://ronganbar.wordpress.com/> > On Thu, Jun 4, 2015 at 12:31 PM, Aurélyen Daudet <[email protected] > <mailto:[email protected]>> wrote: > Hi, > > I think that you can use the toScript() method to get the expression as a > string > t = nuke.toNode("TR_Node") > print t['translate'].toScript() > >> {"(!invert) ? Tracker1.translate.x : -Tracker1.translate.x"} {"(!invert) ? > >> Tracker1.translate.y : -Tracker1.translate.y"} > > hope that helps. > > > > > > -- > Aurélyen DAUDET - Enseignant Nuke et Compositing > [email protected] <mailto:[email protected]> - www.artfx.fr > <http://www.artfx.fr/> - blog.artfx.fr <http://blog.artfx.fr/> > > > > On 4 June 2015 at 11:23, Howard Jones <[email protected] > <mailto:[email protected]>> wrote: > Hi > > I’m trying to fix a bug in nuke where any cornerpins and trackers created by > planarTracker in a stereo project are broken. > the fix is to go through and manually remove the ‘.left’ bit in the > expressions. > > So I was hoping to be able pythonically grab the expression, remove the > offending bit and the setExpression() it back. > > But I can’t find a way to get the original expression, ony the value of the > result. ie an getExpression() equivalent. > > > Howard Jones > Visual Effects Supervisor > m: 07973 265624 | e: [email protected] <mailto:[email protected]> | w: > www.axis-vfx.com <http://www.axis-vfx.com/> > > _______________________________________________ > Nuke-python mailing list > [email protected] > <mailto:[email protected]>, > http://forums.thefoundry.co.uk/ <http://forums.thefoundry.co.uk/> > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python > <http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python> > > > > _______________________________________________ > Nuke-python mailing list > [email protected] > <mailto:[email protected]>, > http://forums.thefoundry.co.uk/ <http://forums.thefoundry.co.uk/> > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python > <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
