Olarn's DevBlog

Search: python


Shorthand for importing standard maya command modules.

Nov 05 2016 15:38

Shorthand for importing standard maya command modules.

>>full article

Converting to and from string/hex/bytes type in python

Nov 29 2017 21:00

Hex/String/Bytes conversion templates.

Python 3:

>>full article

Writing Qt UI layout in pymel's 'with layout' style.

Nov 26 2017 01:04

Extending and modifying Qt's layout class, making UI object constructible using pymel's 'with' style.

>>full article

Extending generic vector type to support HLSL/GLSL like 'Swizzling' operations.

Nov 26 2017 02:01

Implementing Swizzling operation to vectors.

>>full article

Extending Pymel's node types with 'Virtual Class'

Nov 29 2017 00:23

How would one go about extending pymel class? The first obvious solution was to simply inherit the nodetype. But due how pymel's node creation works, simple inheritance such as the following code below would not behave as expected.

>>full article

Managing constructor (__init__) calls in python multiple inheritance scenario

May 03 2018 04:08

Explicit calls to each base __init__ can be managed by using the following snippet.

>>full article

Remove or replace base python metaclass in derived class by using the "Anti-Metaclass"

Jun 09 2018 16:40

Removing and replace base python metaclass in derived class, implemented as another metaclass, the metaclass removing "anti-metaclass"

>>full article

Escaping from nested functions using exception

Jun 15 2018 12:23

Escaping from nested functions using exception.

>>full article

Using Pymel's NodeTracker

Dec 08 2018 18:24

Tracking new dependency nodes the easy way.

>>full article

Building Numpy for Maya Python (2.7)

Dec 16 2020 16:49

This article will explain the process of compiling Numpy from scratch for Maya Python (2.7) on windows.

>>full article

Page 1 of 1