{ "info": { "author": "Florian Einfalt", "author_email": "info@florianeinfalt.de", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Natural Language :: English", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: Implementation :: CPython", "Topic :: Software Development :: Build Tools" ], "description": "nukecontexts\n============\n\n.. image:: https://img.shields.io/pypi/l/nukecontexts.svg\n :target: https://pypi.python.org/pypi/nukecontexts\n.. image:: https://img.shields.io/pypi/pyversions/nukecontexts.svg\n :target: https://pypi.python.org/pypi/nukecontexts\n.. image:: https://img.shields.io/pypi/v/nukecontexts.svg\n :target: https://pypi.python.org/pypi/nukecontexts\n.. image:: https://img.shields.io/pypi/wheel/nukecontexts.svg\n :target: https://pypi.python.org/pypi/nukecontexts\n.. image:: https://readthedocs.org/projects/nukecontexts/badge/?version=latest\n :target: https://readthedocs.org/projects/nukecontexts/?badge=latest\n\n``nukecontexts`` is a library of composable context managers for Nuke to manage the state of complex compositing scripts in code.\n\n`Full Documentation`_\n\nInstallation\n------------\n\nTo install ``nukecontexts``, type:\n\n.. code-block:: bash\n\n $ pip install nukecontexts\n\n\nOpen Nuke's ``init.py`` file and add:\n\n.. code-block:: python\n\n nuke.pluginAddPath('/path/to/your/local/python/site-packages')\n\nGetting Started\n---------------\n\nThe most common use case for ``nukecontexts`` is automated rendering of multiple states of a compositing script. For example two different output formats, jpg and png.\n\n.. code:: python\n\n import nuke\n from nukecontexts import ctx\n\n render_node = nuke.toNode('Write1')\n with ctx.set_attr(render_node, 'file_type', 'jpeg'):\n nuke.execute(render_node.name(), 1, 1, 1)\n with ctx.set_attr(render_node, 'file_type', 'png'):\n nuke.execute(render_node.name(), 1, 1, 1)\n\nThe power of ``nukecontexts`` comes with composable contexts, using ``multiple_contexts()``. Arbitrarily complex, varying states of the compositing script can be defined and used to automatically generate different results.\n\n.. code:: python\n\n merge_node = nuke.toNode('Merge1')\n grade_node = nuke.toNode('Grade1')\n switch_node = nuke.toNode('Switch1')\n\n ctx1 = ctx.enable([merge_node, grade_node])\n ctx2 = ctx.set_attr(grade_node, 'white', 2.0)\n ctx3 = ctx.set_attr(switch_node, 'which', 0)\n ctx4 = ctx.disable(merge_node)\n\n with ctx.multiple_contexts([ctx1, ctx2, ctx3]):\n \"\"\"Render with the merge_node and grade_node enabled, the\n grade_node's white attribute set to 2.0 and the switch_node's switch\n position set to 0.\"\"\"\n nuke.execute(render_node.name(), 1, 1, 1)\n\n with ctx.multiple_contexts([ctx3, ctx4]):\n \"\"\"Render with the switch_node's switch position set to 0 and the\n merge node disabled; the grade_node's gain value remains at the\n original value.\"\"\"\n nuke.execute(render_node.name(), 1, 1, 1)\n\n.. _Full Documentation: http://nukecontexts.readthedocs.io/en/latest/\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/florianeinfalt/nukecontexts", "keywords": "", "license": "Apache 2.0", "maintainer": "", "maintainer_email": "", "name": "nukecontexts", "package_url": "https://pypi.org/project/nukecontexts/", "platform": "", "project_url": "https://pypi.org/project/nukecontexts/", "project_urls": { "Homepage": "https://github.com/florianeinfalt/nukecontexts" }, "release_url": "https://pypi.org/project/nukecontexts/0.2.0/", "requires_dist": [ "tqdm" ], "requires_python": "", "summary": "A library of composable context managers for Nuke", "version": "0.2.0" }, "last_serial": 4000651, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "c6cd30aa914216535018167ec87ebb9e", "sha256": "95212f2368555f8adff3fc0c21ca1aaa74e524bd4086b77cbe35a09d69d142a3" }, "downloads": -1, "filename": "nukecontexts-0.1-py2-none-any.whl", "has_sig": false, "md5_digest": "c6cd30aa914216535018167ec87ebb9e", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 4416, "upload_time": "2017-02-13T16:14:58", "url": "https://files.pythonhosted.org/packages/0d/da/7dbbba596a4c0dd2e205bd85201de4e974eb351377355ffcee9b6f98c025/nukecontexts-0.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "027928beb6b63a12767770843d341a5f", "sha256": "1f28f3431da59d0d0f857de10a5022f371a9a08e5e6e535c92d0d7fe6aa7369d" }, "downloads": -1, "filename": "nukecontexts-0.1.tar.gz", "has_sig": false, "md5_digest": "027928beb6b63a12767770843d341a5f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2988, "upload_time": "2017-02-13T16:15:01", "url": "https://files.pythonhosted.org/packages/99/77/07768faec0d4ac3b596ffb7e8f08a61e83262d19cc2673a1989e888f8528/nukecontexts-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "63c999aac5382e23288951a358bc25b1", "sha256": "ed1674c4a93c6b2ee71ea3c589ad36301e7e464cb8431826706a1394e15a8319" }, "downloads": -1, "filename": "nukecontexts-0.1.1-py2-none-any.whl", "has_sig": false, "md5_digest": "63c999aac5382e23288951a358bc25b1", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 6112, "upload_time": "2017-02-13T16:46:16", "url": "https://files.pythonhosted.org/packages/b6/23/88493f474e2f270823e4589d3e28eda9f16badd03cc7eb4c1dc748a64f9f/nukecontexts-0.1.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ffa781904a921350b84113e6b6a58312", "sha256": "eb99a297badc3340cb7e6cc161a4a17692364c02fb4797ac9746d8c2bff84c0a" }, "downloads": -1, "filename": "nukecontexts-0.1.1.tar.gz", "has_sig": false, "md5_digest": "ffa781904a921350b84113e6b6a58312", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3642, "upload_time": "2017-02-13T16:46:18", "url": "https://files.pythonhosted.org/packages/44/7f/3c0d637a27772e016d0a7ba3ca74006d209870780131fa7ee5ecde79d65a/nukecontexts-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "359f372b06df6b1f16b4e116294c3a2d", "sha256": "19f8cba6e5879bef13b99f75d210c1b49f94b79abf0ebe8c57c908103c291b4b" }, "downloads": -1, "filename": "nukecontexts-0.1.2-py2-none-any.whl", "has_sig": false, "md5_digest": "359f372b06df6b1f16b4e116294c3a2d", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 6116, "upload_time": "2017-02-13T16:54:37", "url": "https://files.pythonhosted.org/packages/bb/0e/0e7b5391ff1011708f57fe2491e018816e9ec9106cc4b9b40ba3c1e6a118/nukecontexts-0.1.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1242058a7c5f7b018b08c9a2655708d2", "sha256": "22f9f3fa1efa124e82e1775cee74f61910116dea235f64d7a09e1c81754bb3a1" }, "downloads": -1, "filename": "nukecontexts-0.1.2.tar.gz", "has_sig": false, "md5_digest": "1242058a7c5f7b018b08c9a2655708d2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12041, "upload_time": "2017-02-13T16:54:40", "url": "https://files.pythonhosted.org/packages/37/12/19fdaa3d8a42339f647f6b508bcc1f89b961faa30181a3654eddac0a95d3/nukecontexts-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "9e51905d7184cf719b9810a782c57eac", "sha256": "c648c93119aee581aa2cca7bb750a092cf7d511ead9606222af64a5be59093b5" }, "downloads": -1, "filename": "nukecontexts-0.1.3-py2-none-any.whl", "has_sig": false, "md5_digest": "9e51905d7184cf719b9810a782c57eac", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 6918, "upload_time": "2017-02-18T14:36:08", "url": "https://files.pythonhosted.org/packages/36/f2/33940417ef5ff442bb027cea87da5a21d5d85e9e29935a4d3b50b3fdd9a0/nukecontexts-0.1.3-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "78d1acbdda2923bfbd51325f4ecbf4df", "sha256": "bf2f0ac5f79664bddd12be9f4b70a3167f9df27ac967cf65830de2030ac99c87" }, "downloads": -1, "filename": "nukecontexts-0.1.3.tar.gz", "has_sig": false, "md5_digest": "78d1acbdda2923bfbd51325f4ecbf4df", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13335, "upload_time": "2017-02-18T14:36:09", "url": "https://files.pythonhosted.org/packages/ca/a0/4457f5d99627c7056a7c8ce6f48031d19b7129dd33d17e7301198cb998ca/nukecontexts-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "3d683ef1d9a51a56bff88e9b092c4011", "sha256": "379fba30899a483c6501ea023d78c4d3d2cbb53deed103620d7e1fc6dff2a178" }, "downloads": -1, "filename": "nukecontexts-0.1.4-py2-none-any.whl", "has_sig": false, "md5_digest": "3d683ef1d9a51a56bff88e9b092c4011", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 7134, "upload_time": "2017-02-24T16:34:51", "url": "https://files.pythonhosted.org/packages/08/16/148d4b4de2af486eef83f94a4aad227074f4ceac9204eb12b24e4d9aa5ab/nukecontexts-0.1.4-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fc64cffd6d850296b527e5a5d2732e87", "sha256": "9a68b1e7f824866f329723827b742f373b0c54a43b1d0dbe1d8db0d3dcaf34cf" }, "downloads": -1, "filename": "nukecontexts-0.1.4.tar.gz", "has_sig": false, "md5_digest": "fc64cffd6d850296b527e5a5d2732e87", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13625, "upload_time": "2017-02-24T16:34:52", "url": "https://files.pythonhosted.org/packages/ae/68/fc662ab9c8f331b45c030a3691f6dedbb65ef782bbc99cfefd830f738027/nukecontexts-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "2ff3458f2a6051ba4730fd44a31d05f0", "sha256": "bd622c6f90af3966b97eefde07df841a036241def3b227c83fc327ff9fa26878" }, "downloads": -1, "filename": "nukecontexts-0.1.5-py2-none-any.whl", "has_sig": false, "md5_digest": "2ff3458f2a6051ba4730fd44a31d05f0", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 7184, "upload_time": "2018-06-06T08:17:33", "url": "https://files.pythonhosted.org/packages/4d/4c/e7b824185934624a1b8909dce758a7a760c6a50af048ed8df0a178b1752d/nukecontexts-0.1.5-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "44d9e3ad4a2dfd43c221a2d4379b3235", "sha256": "2f603268cbb9aee566a1004587c8e8d1589bf3951d247ada62ba725618a72ed3" }, "downloads": -1, "filename": "nukecontexts-0.1.5.tar.gz", "has_sig": false, "md5_digest": "44d9e3ad4a2dfd43c221a2d4379b3235", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13713, "upload_time": "2018-06-06T08:17:34", "url": "https://files.pythonhosted.org/packages/a2/0b/d7e9ea02df9acd7a88748afbe30c869d60370ab8dfa7aef79dcdeeb58870/nukecontexts-0.1.5.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "933c48d2f37bec3020dc3bfd25d1b7aa", "sha256": "202c5b858401300a31f2cfadb89bb6e6f1ad278a1aa9673b477dfeae8740b750" }, "downloads": -1, "filename": "nukecontexts-0.2.0-py2-none-any.whl", "has_sig": false, "md5_digest": "933c48d2f37bec3020dc3bfd25d1b7aa", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 7329, "upload_time": "2018-06-25T15:02:11", "url": "https://files.pythonhosted.org/packages/33/a0/a1b4680700ec0a1b4255267bcec976bd83c3973d5accdbdbde93616c3f67/nukecontexts-0.2.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5418d51d4cb4171310648d9c25cf52d8", "sha256": "7a39e32bd3d8a94861e294dc09e0e28ef4cbc8a2d11e400d05713b3ddb8345ed" }, "downloads": -1, "filename": "nukecontexts-0.2.0.tar.gz", "has_sig": false, "md5_digest": "5418d51d4cb4171310648d9c25cf52d8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14026, "upload_time": "2018-06-25T15:02:14", "url": "https://files.pythonhosted.org/packages/68/a7/b1e6c0865bb53f36b896ebe7ac63e1e0d858190f9a056b0260bf8ae84b42/nukecontexts-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "933c48d2f37bec3020dc3bfd25d1b7aa", "sha256": "202c5b858401300a31f2cfadb89bb6e6f1ad278a1aa9673b477dfeae8740b750" }, "downloads": -1, "filename": "nukecontexts-0.2.0-py2-none-any.whl", "has_sig": false, "md5_digest": "933c48d2f37bec3020dc3bfd25d1b7aa", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 7329, "upload_time": "2018-06-25T15:02:11", "url": "https://files.pythonhosted.org/packages/33/a0/a1b4680700ec0a1b4255267bcec976bd83c3973d5accdbdbde93616c3f67/nukecontexts-0.2.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5418d51d4cb4171310648d9c25cf52d8", "sha256": "7a39e32bd3d8a94861e294dc09e0e28ef4cbc8a2d11e400d05713b3ddb8345ed" }, "downloads": -1, "filename": "nukecontexts-0.2.0.tar.gz", "has_sig": false, "md5_digest": "5418d51d4cb4171310648d9c25cf52d8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14026, "upload_time": "2018-06-25T15:02:14", "url": "https://files.pythonhosted.org/packages/68/a7/b1e6c0865bb53f36b896ebe7ac63e1e0d858190f9a056b0260bf8ae84b42/nukecontexts-0.2.0.tar.gz" } ] }