python main.py --amount 100- Panning by left-click + drag
- Scale by rotating the mouse wheel
| /* | |
| An example of writing to an array plug | |
| Description | |
| ----------------------------------------------------------- | |
| There are two ways of achieving this | |
| 1. Based on input, dynamically generate plugs in an array | |
| 2. Based on a connected array output, write to that |
| cmake_minimum_required(VERSION 2.8) | |
| # include the project setting file | |
| include($ENV{DEVKIT_LOCATION}/cmake/pluginEntry.cmake) | |
| # specify project name | |
| set(PROJECT_NAME MyData) | |
| set(SOURCE_FILES | |
| Sender.cpp |
| """Illustration of how to retrieve the shape under the mouse cursor | |
| Usage: | |
| Run `start()` to start listening for when the mouse stops and to display a tooltip | |
| Run `stop()` to stop listening | |
| """ | |
| from maya import cmds | |
| from PySide import QtGui, QtCore |
| #- | |
| # ========================================================================== | |
| # Copyright (c) 2018 Autodesk, Inc. | |
| # All rights reserved. | |
| # | |
| # These coded instructions, statements, and computer programs contain | |
| # unpublished proprietary information written by Autodesk, Inc., and are | |
| # protected by Federal copyright law. They may not be disclosed to third | |
| # parties or copied or duplicated in any form, in whole or in part, without | |
| # the prior written consent of Autodesk, Inc. |
This gist illustrates how two processes can exchange information via subprocess.Popen.
Integrate an externally running user interface, potentially written in another language. For example, a GUI written in PyQt5 and Python 3 running inside of Autodesk Maya (Python 2.7, PySide).
| import QtQuick 2.3 | |
| Item { | |
| id: composite | |
| property Component body | |
| Row { | |
| anchors.fill: parent |
On LinkedIn, some of the posts in your "Feed" are ads. They carry a little indicator (by law) to tell you as much. This script looks for those indicators and hides it for you. It works by installing an event listener for when you scroll, and looks for newly promoted posts to hide.
Copy/paste the above script into your Console when visiting LinkedIn. You can use an extension to run the above script whenever visiting LinkedIn, such as "Custom JavaScript for Websites 2"