Menu
From MODO 801, there's a new type of server that can be created called an ILxCustomView, which allows 3rd party developers the ability to create custom UI and have it embed as a viewport into MODO. As with the rest of the SDK, this is also available through python using PySide.
Note that this is the only way to add pure Qt interfaces to MODO. Whenever possible, forms, trees, and the existing viewports and layouts should be used to present interfaces to ensure consistent look and feel. However, this isn't always possible, which is why the custom viewport mechanism exists.
Jun 30, 2015 The Foundry MODO 901 SP1 Win/Mac/Linux. Continue Reading. The MODO Shading Masterclass Part 5 – 901 Updates. Posted by Users on 2015/06/30. Posted in: 3D, CG Releases, Downloads, Learning, Tutorials, Videos. Tagged: Modo. The MODO Shading Masterclass Part 5. The Colorway advantage. Colorway’s unique feature set is designed to take the drudgery out of all aspects of creating and managing artwork variations—saving significant amounts of time, reducing the potential for errors and letting you concentrate on refining your design’s aesthetics.
NB: this is only available on Linux in MODO 801 but on Linux, OSX and Windows from MODO 901
- 1Python Examples
Python Examples
Below are a few simple Python examples, but you can create plugins using C/C++ in the same manner.
Example: My Render Button
The first example is a simple button with the text “Render” and when pressed will, you guessed it, fire off a render command
This looks scary but is actually pretty straight forward. Firstly we create a class that implements a single function: customview_Init(). This has one argument, which is always a CustomPane. We can then extract the parent QWidget by calling GetParent on this object and using the helper “lx.getQWidget()” function to convert it into a PySide widget. Once we have this, we can simply add our button using PySide. Simple!
The last line is to register the server with modo. Once this is done, create a “Custom View” viewport and select the server from the list shown in the settings popover:
Example: Embedded Web browser
Here’s another example of creating a web browser that shows The Foundry community webpage:
Example: Python Preview Window
This is a slightly more advanced view, but allows you to create your own Preview window and do pixel processing before showing in UI.Probably better suited to a C++ plugin
Example: Modo Graph Viewer
This is a very simple TreeView showing the current state of all the modo graphs in the open scene.
Example: C++ OpenGL Viewport
This is a more advanced example written in C++. This creates a simple opengl viewport and renders a rotating cube inside.
Call: TransTypeVersion: – 4.0.1Mac Platform: IntelConsists of: CrackOSVersion: 10.6.8Processor type(s) & & rate:Memory minimum:Video RAM: TransType 4.0.1 Mac OS X 10.6.8– 10.9 (Intel 64-bit, supports Retina monitor).TransType is a little Mac application which can transform TrueType fonts between PC and the Mac and Type 1. Unlike other applications of the type, TransType does the conversion with complete regard to bitmap fonts, encodings, font suitcases, codepages, and other features specific to PC platform or the Mac. 1000 opentype font collection 4.0. Enabling you to transform font styles in batch mode (two way transformation can be done as you operation) and making definitely appropriate font styles, TransType can be utilized to produce production-quality font styles.Exactly what’s New Version 4.0.1.
The code is pretty self explanatory, to compile you'll need to use the LXSDK and Qt 4.8.5.
The Foundry Modo 901 Sp1 Download
Here is the code: MyOpenGLView.zip
Python Script Editor
We ship a python script editor that is written entirely in Python and using PySide. It’s based off the Nuke and Hiero script editor which has the following features:
- Syntax highlighting
- auto complete
- load/save scripts
- error highlighting
- auto-indentation
- line numbering
Default Stylesheet
We've also created a default Stylesheet so that widgets are, by default, styled as similar as possible to modo. This can be overwritten in your own UI, but ideally custom viewports should as much as possible use the default stylesheet. Currently this is shipped as a css file in “<modo>/resrc/stye/style.css”, but is subject to change
Buttons Groups
To make buttons group in the same manner as modo, you should tag a QPushButton with 'left', 'right' or 'center' to ensure correct bevelling.
Here's a simple python example in how to do this:
More Information
The Foundry Modo 901 Sp1 Download
Retrieved from 'https://modosdk.foundry.com/index.php?title=CustomView&oldid=34549'