Skip to content

Commit

Permalink
Merge pull request #10 from Eiken/master
Browse files Browse the repository at this point in the history
Add py3 support for recent maya versions
  • Loading branch information
david-cattermole committed Jun 20, 2023
2 parents 43327c5 + 345d66d commit 9c4e5e4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
8 changes: 5 additions & 3 deletions plug-ins/dcCameraInferno.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,14 @@
import maya.api.OpenMaya as OpenMaya
import maya.api.OpenMayaUI as OpenMayaUI
import maya.api.OpenMayaRender as OpenMayaRender
from six.moves import range
from six.moves import zip

# Registered Node Id.
PLUGIN_NODE_ID = 0x0012F183
PLUGIN_NODE_NAME = "dcCameraInferno"
PLUGIN_NODE_AUTHOR_STRING = "David Cattermole"
PLUGIN_NODE_VERSION_STRING = "0.3.0"
PLUGIN_NODE_VERSION_STRING = "0.4.0"

# Types of field indices.
FIELD_TYPE_NONE_INDEX = 0
Expand Down Expand Up @@ -2339,7 +2341,7 @@ def addUIDrawables(self, obj_path, draw_manager, frame_context, data):
# Generate array of field data, to unwraped and read in
# self.draw_field.
field_general_values = dict(user_data.m_field_general_values)
fields_data = zip(
fields_data = list(zip(
user_data.m_field_enable,
user_data.m_field_type,
user_data.m_field_pos_a,
Expand Down Expand Up @@ -2367,7 +2369,7 @@ def addUIDrawables(self, obj_path, draw_manager, frame_context, data):
user_data.m_field_value_b,
user_data.m_field_value_c,
user_data.m_field_value_d,
)
))

# Draw Mask.
mask_enable = user_data.m_mask_enable
Expand Down
1 change: 1 addition & 0 deletions plug-ins/dcVelocity.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
https://github.com/david-cattermole/velocity-maya
"""

from __future__ import absolute_import
import math

import maya.api.OpenMaya as OpenMaya
Expand Down
1 change: 1 addition & 0 deletions python/dcCameraInferno/tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
Tools to use Camera Inferno.
"""

from __future__ import absolute_import
import maya.cmds


Expand Down
1 change: 1 addition & 0 deletions tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"""

from __future__ import absolute_import
import maya.cmds
import dcCameraInferno.tool as tool

Expand Down

0 comments on commit 9c4e5e4

Please sign in to comment.