Tag: Python
-
Lesson 4A: Convert script to an Add-in(C++/Python)
Python C++ After creating an add-in, we’ll have a project structure like below. Same as the script, they entry point is in the BasicAddin.py. Let’s take a look at it. # Assuming you have not changed the general structure of the template no modification is needed in this file. from . import commands from .lib…
-
Lesson 3: Create a shoebox
Python C++ Typescript @dataclass class BoxParameters: border_thickness : float bottom_thickness : float inner_width : float inner_length : float inner_height : float fillet_size : float def __init__(self, border_thickness: float, bottom_thickness:float, inner_width:float, inner_length:float, inner_height:float, fillet_size:float): self.border_thickness = border_thickness self.bottom_thickness = bottom_thickness self.inner_width = inner_width self.inner_length = inner_length self.inner_height = inner_height self.fillet_size = fillet_size typedef struct { double…
-
Lesson 1: The basic scripts and Add-in
Python/C++ Typescript 1. Launch Fusion, find utilities and click at the drop menu of ADD-INS button. You can find Scripts and Add-ins menu item. 2. Click at it, in the new window, we can create two types of add-ins: Scripts and Add-ins. There isn’t much different between them technically. The script will run at once…
-
Fusion Python Upgrade and more
The information below was sent out to people who submitted a Python-based Fusion add-in on the App Store, but it’s worth letting all Fusion developers know about this. Python UpdateThe first is an upgrade of the Python version used in Fusion from 3.12 to 3.14. We don’t expect this change to break any apps, but…
-
How to build PyQt5 for Maya 2024
Maya 2024 is shipped with Python 3.10 only on all platforms. Although pip is shipped with Maya 2024, we still can’t use it to install PyQt5 on Mac or Linux. On windows, pip installed packages could work. However, it has its own Qt5 libraries installed and it may lead to problems. You may want to…
-
Maya 2024 API Update guide
The guide is based on What’s New in the Maya Devkit in Maya 2024 with some extra info. For more details including commands and scripts changes, please checkout the documentation for more details. Building environments In Maya 2024, we made significent changes on the building environment. The minimum supported version of CMake has been updated…

You must be logged in to post a comment.