GithubHelp home page GithubHelp logo

lakshbhatnagar / pw_multiscripteditor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from paulwinex/pw_multiscripteditor

0.0 1.0 0.0 931 KB

Python Editor for CG Applications

Python 99.29% Batchfile 0.01% Shell 0.01% CSS 0.70%

pw_multiscripteditor's Introduction

Multi Script Editor v2.0.3

alt tag

This is a cross application, cross platform and open source Python editor, which can be run as a standalone application or embedded in another application. The main purpose for integration - the ability to script in Python.

Key features

  • Preserve and load of tabs and code in them
  • Interactive execute of the selected code by pressing Ctrl + Enter
  • Adjust the color theme of the code editor
  • Code completion (module jedi)
  • Context completion for different functions like existing nodes and path in scene

Existing integration modules

  • Houdini 13 and 14 (using hqt.py module)
  • Nuke 8,9
  • Maya 2014-2016
  • 3DsMax 2014-2016

If necessary, you can extend this to make your own integration module. The main pre condition - Should be used Python2.7.

Houdini features

  • Code completion for all modules and return types (remastered hou library)
  • Context completion for functions CreateNode, CreateInputNode and CreateOutputNode with existing houdini node types
  • Context completion string for absolute houdini internal path and node parameters. To use this complete start string with "/ or '/
  • Drag&Drop Houdini nodes and parameters fills in their path. Use Alt modifier to wrap node or parameter as code like in Houdini Python Shell.
  • Reading and writing to PythonSOP code and asset sections

Nuke features

  • Code completion for all modules and return types (remastered nuke library)
  • Context completion for createNode with existing Nuke node types
  • Context completion for function toNode with existing nodes in current script
  • Converting selected nodes to code with function nuke.toNode
  • Searching and converting nodes to code from clipboard
  • Reading and writing from PythonKnobs code

Maya features

  • Save code to shelf and accept dropped shelf button code, like default Maya script editor
  • Drag&Drop Maya nodes fills in their names. Use Alt modifier to wrap node as code. Import PyMEL before doing this!
  • Context completion for function PyNode with existing nodes in current scene
  • Context completion for function pm.createNode and cmds.createNode with existing Maya node types

3DsMax features

  • Works for now...

How to install

Standalone

  • install Python 2.7
  • install PySide
  • use run.cmd (Windows) or run.sh (Linux) to start

Houdini 13

  • download and install hqt.py
  • install PySide to default Python interpreter
  • create new tool on shelf
import sys
paths = ['path/to/folder/with/MultiScriptEditor_module','path/to/default/python27/lib/with/PySide']
# example ['c:/houdini/python/lib', 'c:/python27/Lib/site-packages']
for path in paths:
    if not path in sys.path:
        sys.path.append(path)
import pw_multiScriptEditor
pw_multiScriptEditor.showHoudini(ontop=1)

Houdini 14

  • download and install hqt.py
  • create new tool on shelf
import sys
path = 'path/to/folder/with/MultiScriptEditor_module'
# example c:/houdini/python/lib
if not path in sys.path:
    sys.path.append(path)
import pw_multiScriptEditor
pw_multiScriptEditor.showHoudini(name='Multi Script Editor',replacePyPanel=1, hideTitleMenu=0)

Also you can use .pypanel file without hqt module

/managers/houdini/pw_MultiScriptEditor.pypanel

Maya

  • Create shelf button with code
import sys
path = 'path/to/folder/with/MultiScriptEditor_module'
# example c:/maya/python/lib
if not path in sys.path:
    sys.path.append(path)
import pw_multiScriptEditor
pw_multiScriptEditor.showMaya(dock=True)

Nuke

  • Add next code to menu.py
import nuke
menubar = nuke.menu("Nuke")
toolMenu = menubar.addMenu('&Tools')
path = 'path/to/folder/with/MultiScriptEditor_module'
# example c:/nuke/python/lib
if not path in sys.path:
    sys.path.append(path)

import pw_multiScriptEditor
# add to menu
toolMenu.addCommand("Multi Script Editor", "pw_multiScriptEditor.showNuke()")
# create new pane
pw_multiScriptEditor.showNuke(panel=True)

3DsMax

  • Create a menu, toolbar, etc with the following maxscript:
python.executefile("path\\to\\pw_multiScriptEditor\\run_3dsmax.py")

License

This project is licensed under the MIT License

pw_multiscripteditor's People

Contributors

paulwinex avatar hasielhassan avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.