Skip to content

Commit

Permalink
v0.8.2 bug fixes
Browse files Browse the repository at this point in the history
- NativeUnits() now works around scene open / save / new events
- Vector.angle() on plugs and data now returns correct plug type
  • Loading branch information
kimonmatara committed Jul 27, 2022
1 parent d8643c2 commit 80813fb
Show file tree
Hide file tree
Showing 129 changed files with 442 additions and 334 deletions.
Binary file modified datatypes/__pycache__/vector.cpython-37.pyc
Binary file not shown.
1 change: 1 addition & 0 deletions datatypes/vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,7 @@ def angle(self, other, clockNormal=None):
if complete:
dot = cross.dot(other, normalize=True)
angle = dot.gt(0.0).ifElse(_pu.radians(360.0)-angle, angle)
angle.__class__ = r.plugs.Angle

else:
angle = _dt.Vector.angle(self, other)
Expand Down
2 changes: 1 addition & 1 deletion docs/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 344b8a042bbc25667d62ea35aa37cb6f
config: 0ea969a95b6c90ee4eedc39f269810fc
tags: 645f666f9bcd5a90fca523b33c5a78b7
9 changes: 7 additions & 2 deletions docs/_sources/paya/lib/mathops.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,14 @@ paya.lib.mathops
False
:rtype: bool

.. py:class:: NativeUnits
.. py:class:: NativeUnits(*args, **kwargs)
Context manager. Switches Maya to centimetres and radians.
Context manager. Switches Maya to centimetres and radians. New-scene /
open-scene / save-scene events are compensated for with API callbacks.

.. py:staticmethod:: __new__(*args, **kwargs)
Create and return a new object. See help(type) for accurate signature.

.. py:function:: nativeUnits(f)
Expand Down
16 changes: 15 additions & 1 deletion docs/_sources/whats_new.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@
What's New
##########

*************
Version 0.8.2
*************

Bugs Fixed
==========

* :meth:`paya.runtime.data.Vector.angle` and :meth:`paya.runtime.plugs.Vector.angle` return the wrong subclass of
:class:`~paya.runtime.plugs.Attribute`

* :class:`~paya.lib.mathops.NativeUnits` is defeated by new-scene / open-scene / save-scene events (fix: added
API callbacks and changed the class to a singleton that will ignore nested calls, to cut down on callback
maintenance)

*************
Version 0.8.1
*************
Expand All @@ -26,7 +40,7 @@ Bugs Fixed
==========

* Up vectors are not properly iterated inside
:meth:`~paya.runtime.nodes.NurbsCurve.distributeMatrices`
:meth:`paya.runtime.nodes.NurbsCurve.distributeMatrices`

---------

Expand Down
2 changes: 1 addition & 1 deletion docs/_static/documentation_options.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var DOCUMENTATION_OPTIONS = {
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
VERSION: '0.8.1',
VERSION: '0.8.2',
LANGUAGE: 'None',
COLLAPSE_INDEX: false,
BUILDER: 'html',
Expand Down
4 changes: 2 additions & 2 deletions docs/adding_oo_functionality.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Adding Your Own Methods &mdash; paya 0.8.1 documentation</title>
<title>Adding Your Own Methods &mdash; paya 0.8.2 documentation</title>
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="_static/tabs.css" type="text/css" />
Expand Down Expand Up @@ -33,7 +33,7 @@
<img src="_static/logo_sidebar.png" class="logo" alt="Logo"/>
</a>
<div class="version">
0.8.1
0.8.2
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
Expand Down
4 changes: 2 additions & 2 deletions docs/angles_and_rotations.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Working with Angles and Rotations &mdash; paya 0.8.1 documentation</title>
<title>Working with Angles and Rotations &mdash; paya 0.8.2 documentation</title>
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="_static/tabs.css" type="text/css" />
Expand Down Expand Up @@ -34,7 +34,7 @@
<img src="_static/logo_sidebar.png" class="logo" alt="Logo"/>
</a>
<div class="version">
0.8.1
0.8.2
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
Expand Down
4 changes: 2 additions & 2 deletions docs/author.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Author &mdash; paya 0.8.1 documentation</title>
<title>Author &mdash; paya 0.8.2 documentation</title>
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="_static/tabs.css" type="text/css" />
Expand Down Expand Up @@ -32,7 +32,7 @@
<img src="_static/logo_sidebar.png" class="logo" alt="Logo"/>
</a>
<div class="version">
0.8.1
0.8.2
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
Expand Down
4 changes: 2 additions & 2 deletions docs/connecting_controls.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Connecting Controls &mdash; paya 0.8.1 documentation</title>
<title>Connecting Controls &mdash; paya 0.8.2 documentation</title>
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="_static/tabs.css" type="text/css" />
Expand Down Expand Up @@ -34,7 +34,7 @@
<img src="_static/logo_sidebar.png" class="logo" alt="Logo"/>
</a>
<div class="version">
0.8.1
0.8.2
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
Expand Down
4 changes: 2 additions & 2 deletions docs/control_shapes_cols.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Control Shapes and Colors &mdash; paya 0.8.1 documentation</title>
<title>Control Shapes and Colors &mdash; paya 0.8.2 documentation</title>
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="_static/tabs.css" type="text/css" />
Expand Down Expand Up @@ -34,7 +34,7 @@
<img src="_static/logo_sidebar.png" class="logo" alt="Logo"/>
</a>
<div class="version">
0.8.1
0.8.2
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
Expand Down
4 changes: 2 additions & 2 deletions docs/control_tags_pickwalk.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Controller Tags and Pick-Walk Hierarchies &mdash; paya 0.8.1 documentation</title>
<title>Controller Tags and Pick-Walk Hierarchies &mdash; paya 0.8.2 documentation</title>
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="_static/tabs.css" type="text/css" />
Expand Down Expand Up @@ -34,7 +34,7 @@
<img src="_static/logo_sidebar.png" class="logo" alt="Logo"/>
</a>
<div class="version">
0.8.1
0.8.2
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
Expand Down
4 changes: 2 additions & 2 deletions docs/controls.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Controls &mdash; paya 0.8.1 documentation</title>
<title>Controls &mdash; paya 0.8.2 documentation</title>
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="_static/tabs.css" type="text/css" />
Expand Down Expand Up @@ -33,7 +33,7 @@
<img src="_static/logo_sidebar.png" class="logo" alt="Logo"/>
</a>
<div class="version">
0.8.1
0.8.2
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
Expand Down
4 changes: 2 additions & 2 deletions docs/curves.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>NURBS &amp; Bezier Curves &mdash; paya 0.8.1 documentation</title>
<title>NURBS &amp; Bezier Curves &mdash; paya 0.8.2 documentation</title>
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="_static/tabs.css" type="text/css" />
Expand Down Expand Up @@ -34,7 +34,7 @@
<img src="_static/logo_sidebar.png" class="logo" alt="Logo"/>
</a>
<div class="version">
0.8.1
0.8.2
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
Expand Down
4 changes: 2 additions & 2 deletions docs/deformers.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Deformers &mdash; paya 0.8.1 documentation</title>
<title>Deformers &mdash; paya 0.8.2 documentation</title>
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="_static/tabs.css" type="text/css" />
Expand Down Expand Up @@ -34,7 +34,7 @@
<img src="_static/logo_sidebar.png" class="logo" alt="Logo"/>
</a>
<div class="version">
0.8.1
0.8.2
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
Expand Down
4 changes: 2 additions & 2 deletions docs/drawing_controls.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Drawing Controls &mdash; paya 0.8.1 documentation</title>
<title>Drawing Controls &mdash; paya 0.8.2 documentation</title>
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="_static/tabs.css" type="text/css" />
Expand Down Expand Up @@ -34,7 +34,7 @@
<img src="_static/logo_sidebar.png" class="logo" alt="Logo"/>
</a>
<div class="version">
0.8.1
0.8.2
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
Expand Down
6 changes: 4 additions & 2 deletions docs/genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Index &mdash; paya 0.8.1 documentation</title>
<title>Index &mdash; paya 0.8.2 documentation</title>
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="_static/tabs.css" type="text/css" />
Expand Down Expand Up @@ -31,7 +31,7 @@
<img src="_static/logo_sidebar.png" class="logo" alt="Logo"/>
</a>
<div class="version">
0.8.1
0.8.2
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
Expand Down Expand Up @@ -229,6 +229,8 @@ <h2 id="_">_</h2>
<li><a href="paya/pools.html#paya.pools.ClassPool.__new__">(ClassPool static method)</a>
</li>
<li><a href="paya/lib/controlshapes.html#paya.lib.controlshapes.ControlShapesLibrary.__new__">(ControlShapesLibrary static method)</a>
</li>
<li><a href="paya/lib/mathops.html#paya.lib.mathops.NativeUnits.__new__">(NativeUnits static method)</a>
</li>
</ul></li>
<li><a href="pools/data/eulerRotation.html#paya.runtime.data.EulerRotation.__pow__">__pow__() (EulerRotation method)</a>
Expand Down
4 changes: 2 additions & 2 deletions docs/geo_basics.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Geometry Basics &mdash; paya 0.8.1 documentation</title>
<title>Geometry Basics &mdash; paya 0.8.2 documentation</title>
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="_static/tabs.css" type="text/css" />
Expand Down Expand Up @@ -34,7 +34,7 @@
<img src="_static/logo_sidebar.png" class="logo" alt="Logo"/>
</a>
<div class="version">
0.8.1
0.8.2
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
Expand Down
4 changes: 2 additions & 2 deletions docs/geometry.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Geometry &mdash; paya 0.8.1 documentation</title>
<title>Geometry &mdash; paya 0.8.2 documentation</title>
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="_static/tabs.css" type="text/css" />
Expand Down Expand Up @@ -33,7 +33,7 @@
<img src="_static/logo_sidebar.png" class="logo" alt="Logo"/>
</a>
<div class="version">
0.8.1
0.8.2
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
Expand Down
4 changes: 2 additions & 2 deletions docs/getting_started.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Quick Start &mdash; paya 0.8.1 documentation</title>
<title>Quick Start &mdash; paya 0.8.2 documentation</title>
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="_static/tabs.css" type="text/css" />
Expand Down Expand Up @@ -33,7 +33,7 @@
<img src="_static/logo_sidebar.png" class="logo" alt="Logo"/>
</a>
<div class="version">
0.8.1
0.8.2
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
Expand Down
4 changes: 2 additions & 2 deletions docs/glossary.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Glossary &mdash; paya 0.8.1 documentation</title>
<title>Glossary &mdash; paya 0.8.2 documentation</title>
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="_static/tabs.css" type="text/css" />
Expand Down Expand Up @@ -33,7 +33,7 @@
<img src="_static/logo_sidebar.png" class="logo" alt="Logo"/>
</a>
<div class="version">
0.8.1
0.8.2
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
Expand Down
4 changes: 2 additions & 2 deletions docs/ik.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>IK Handles &mdash; paya 0.8.1 documentation</title>
<title>IK Handles &mdash; paya 0.8.2 documentation</title>
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="_static/tabs.css" type="text/css" />
Expand Down Expand Up @@ -34,7 +34,7 @@
<img src="_static/logo_sidebar.png" class="logo" alt="Logo"/>
</a>
<div class="version">
0.8.1
0.8.2
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
Expand Down
4 changes: 2 additions & 2 deletions docs/implementation.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Implementation &mdash; paya 0.8.1 documentation</title>
<title>Implementation &mdash; paya 0.8.2 documentation</title>
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="_static/tabs.css" type="text/css" />
Expand Down Expand Up @@ -33,7 +33,7 @@
<img src="_static/logo_sidebar.png" class="logo" alt="Logo"/>
</a>
<div class="version">
0.8.1
0.8.2
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
Expand Down
Loading

0 comments on commit 80813fb

Please sign in to comment.