Olarn's DevBlog

Showing category: python Show all

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

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

Nov 29 2017 21:00

Hex/String/Bytes conversion templates.

Python 3:

>>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

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

Nov 26 2017 02:01

Implementing Swizzling operation to vectors.

>>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

Page 1 of 1