Did you maybe mix up indentations with tab and whitespaces? Nuke just interprets all indentations as whitespaces (that’s why it works there). Where notepad++ keeps them like they are. Good is using the “Show all characters”-Button, to see if you mixed tab-indentations and whitespace-indentations.
Cheers, Dominic --- Dominic Platz Lead Artist Compositing Mackevision Medien Design GmbH Forststraße 7 70174 Stuttgart T +49 711 93 30 48 639 F +49 711 93 30 48 90 [email protected] www.mackevision.com Geschäftsführer: Armin Pohl, Joachim Lincke, Jens Pohl HRB 243735 Amtsgericht Stuttgart --- VFX: Game of Thrones, Season 5 – VFX making of reel<https://vimeo.com/133433110>. TWITTER | ADOBE BEHANCE: Follow us on Twitter<https://twitter.com/Mackevision> and Adobe Behance<https://www.behance.net/mackevision>. From: [email protected] [mailto:[email protected]] On Behalf Of Igor Majdandzic Sent: Mittwoch, 2. Dezember 2015 12:55 To: [email protected] Subject: [Nuke-python] Indentation Errors Hello guys, soemtimes I add a line to a module and then I get a "IndentationError: unindent does not match any outer indentation level". I know what that means, problem is I dont see the error. I checked the indents, everything is correct. When I copy/paste it into nuke, it executes just fine. The piece of code which errors looks like this: def function(node, expression): node['read_from_file'].setValue(0) for k in node.knobs(): if node[k].visible() and node[k].isAnimated(): node[k].setExpression(expression) return the bold line is the one nuke says is wrong. Sometimes it is not the code flagged that is wrong, but before that just another function definition occurs which looks fine. It worked before, the only thing I added was the line in italics. It happens from time to time. I used notepad++ and pycharm to check for mistakes, but was not able to come up with a fix. Cheers, Igor
_______________________________________________ Nuke-python mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
