The repository for AnyMacro: a Fusion360 Add-In

Related tags

MiscellaneousAnyMacro
Overview

AnyMacro

AnyMacro is an Autodesk® Fusion 360™ add-in for chaining multiple commands in a row to form Macros. Macros are created from a set of commands run while the add-in is recording and will fire each of them consecutively. Additionally, the macros created are able to be mapped to keyboard shortcuts for ease of access.

* This is not able to nor is it designed to replace the AnyShortcut add-in and thus, the functionality it has is not planned to be included in AnyMacro. This add-in is only based on the work by the creator of that add-in and is completly independant. With that said, using both is highly reccomended as they provide a large range of control over your Fusion 360™ application.

Features

Current:

  • Ability to record a series of commands.
  • Ability to remove commands from the Test Macro before saving.
  • Ability to stop recording, then start again while keeping history.
  • Ability to clear the current recorded commands to start again.
  • Ability to save the recorded series of commands as a persistant macro.
  • Ability to delete any recorded macro.
  • Option to block a command from being recorded if it is fired twice in a row.
  • Two Built-in Camera orienting commands.
  • One Built-in Macro to demonstrate chaining.
  • Custom Event which allows API scripts/add-ins to register macros.

Planned:

  • Create icons for built-in commands
  • A built-in command to halt any currently running macro.
  • Ability to add custom icons to each macro.
  • Possible collaboration with AnyShortcut
  • Adding Built-in macros
  • A favourites dropdown
  • Ability to edit pre-made/saved macros

Usage

When enabled, the add-in records the resulting commands of actions that the user performs and collects them in the AnyMacro menu. If not stopped, the recording stops automatically after a number of commands, to avoid any performance degradation when the user is not setting up macros.

* Not all actions in Fusion 360™ result in "Commands" and some commands are not usable on their own. For example, Pick Circle/Arc Tangent does not generate a "Command" and Roll History Marker Here is triggered when clicking rewind in the history, but rewind actually first selects an item and then rolls.

Screenshot

Creating Macros

  • Click Start recording and then launch a series of commands in the order you desire for your macro.
  • If the commands you chose are able to be recorded, they will be added underneath the record command in the Command Recorder dropdown at the top of the AnyMacro panel.
  • Should you desire to remove a command, you need just click its name within the dropdown.
  • Once you stop recording, two new options: Save Macro and Reset Recording; should appear just under the record command along with a test macro at the bottom of the list. The test macro allows you to make sure everything works before you save it and see the changes you make to the command list.
  • Finally, once you are satisfied with the macro, hit the Save Macro button. This will display a prompt that will ask you to name your macro. There are few restrictions on the name, however, make sure there are some numbers or letters as its ID will be created using the str.isidentifier() method for each character.
  • You should now find your command under the Custom Macros dropdown. You can run, assign a key-combination, and delete it right from the menu. Additionaly, the macro is persistant, meaning it will remain between sessions of fusion360 and only needs to be created once.

Removing Macros

  • Navigate to its location under the Custom Macros dropdown
  • Select the remove option under the macro.
  • A prompt will appear asking if you are sure you wish to remove it.
  • Hit OK and the macro is now gone.

Creating Macros From API (EXPEREMENTAL)

  • Create a dictionary representing your macro object.
  • Set its key: name to the desired name for the macro.
  • Set its key: id to the desired id. (Must be "A-z|0-9|_", no spaces!)
  • Set its key: executeList to a list of command-id's to execute in the same order.
  • Use json.dumps from the Json module to convert it into a string.
  • Use Application.fireCustomEvent() with the id "AnyMacro_Add_Macro"
  • Pass in your macro string for the additionalInfo argument.
  • Check to make sure your macro is visible under the Custom Macros dropdown

Built-in Objects

The AnyMacro add-in includes two built-in commands that are used in the built-in macro 'Align Camera'. These commands can be found under the menu item TOOLS -> INSPECT. The macro demonstrates how these two commands can be chained.

Built-in commands include:

  • Change Cameras Up
  • Change Cameras Forwards

Built-in macros include:

  • Align Camera

Images:

Screenshot

Screenshot

Supported Platforms

  • Windows
  • Mac OS

Installation

  1. Download the add-in from the Releases page.

  2. Unpack it into API\AddIns (see How to install an add-in or script in Fusion 360).

  3. Make sure the directory is named AnyMacro, with no suffix.

The new menu TOOLS -> ANYMACRO is now available.

The add-in can be temporarily disabled using the Scripts and Add-ins dialog. Press Shift+S in Fusion 360™ and go to the Add-Ins tab.

Reporting Issues

If you get any problems, please check out the section on Fusion 360 quirks.

If that does not apply to you, please report any issues that you find in the add-in on the Issues page.

For better support, please include the steps you performed and the result. Also include copies of any error messages.

Fusion 360 Quirks

Be aware of the following quirks in Fusion 360™.

  • Fusion 360™ cannot handle all key combinations. Forget Alt+Left to rollback history, because fusion cannot save this combination and it will be broken next time you start the application.

  • Menu items in sub-menus are not always clickable (bug).

Author

This add-in is created by ZXYNINE and is based off of Thomas Axelsson's AnyShortcut.

License

This project is licensed under the terms of the MIT license. See LICENSE.

More Fusion 360™ Add-ins

My Fusion 360™ app store page

All my add-ins on Github

Changelog

  • v 0.1.0
    • Original Implementation
You might also like...
A simple calculator that can add, subtract, multiply or divide depending upon the input from the user

Calculator A simple calculator that can add, subtract, multiply or divide depending upon the input from the user. In this example, we should have the

A script to add issues to a project in Github based on label or status.

Add Github Issues to Project (Beta) A python script to move Github issues to a next-gen (beta) Github Project Getting Started These instructions will

TB Set color display - Add-on for Blender to set multiple objects and material Display Color at once.
TB Set color display - Add-on for Blender to set multiple objects and material Display Color at once.

TB_Set_color_display Add-on for Blender with operations to transfer name between object, data, materials and action names Set groups of object's or ma

This repo contains scripts that add functionality to xbar.
This repo contains scripts that add functionality to xbar.

xbar-custom-plugins This repo contains scripts that add functionality to xbar. Usage You have to add scripts to xbar plugin folder. If you don't find

A clipboard where a user can add and retrieve multiple items to and from (resp) from the clipboard cache.

A clipboard where a user can add and retrieve multiple items to and from (resp) from the clipboard cache.

💻 Algo-Phantoms-Backend is an Application that provides pathways and quizzes along with a code editor to help you towards your DSA journey.📰🔥 This repository contains the REST APIs of the application.✨
💻 Algo-Phantoms-Backend is an Application that provides pathways and quizzes along with a code editor to help you towards your DSA journey.📰🔥 This repository contains the REST APIs of the application.✨

Algo-Phantom-Backend 💻 Algo-Phantoms-Backend is an Application that provides pathways and quizzes along with a code editor to help you towards your D

This repository is an archive of emails that are sent by the awesome Quincy Larson every week.

Awesome Quincy Larson Email Archive This repository is an archive of emails that are sent by the awesome Quincy Larson every week. If you fi

Find the remote website version based on a git repository
Find the remote website version based on a git repository

versionshaker Versionshaker is a tool to find a remote website version based on a git repository This tool will help you to find the website version o

Comments
  • Issue report on MAC through autodesk.

    Issue report on MAC through autodesk.

    "The app seems to be working fine, but the below error shown in Mac once but unable to reproduce this. Please check it once." ErrorMac "The app seems to be working fine, but the below error shown in Mac once but unable to reproduce this. Please check it once."

    Potentially Solved 
    opened by Zxynine 0
Releases(v1.0.3)
Simple dependency injection framework for Python

A simple, strictly typed dependency injection library.

BentoML 14 Jun 29, 2022
Automatically find solutions when your Python code encounters an issue.

What The Python?! Helping you find answers to the errors Python spits out. Installation You can find the source code on GitHub at: https://github.com/

What The Python?! 139 Dec 14, 2022
aaencode for python,把python代码转换为颜文字

py-aaencode aaencode for python,把python代码转换为颜文字 compile.py: 将python编译成颜文字,编译结果有随机性,可以选择BPE词表压缩代码 compile_min.py: 最小化的编译器 compiled_min.txt: 编译得到的最小的com

11 Dec 30, 2021
API Rate Limit Decorator

ratelimit APIs are a very common way to interact with web services. As the need to consume data grows, so does the number of API calls necessary to re

Tomas Basham 574 Dec 26, 2022
It was created to conveniently respond to events such as donation, follow, and hosting using the Alert Box provided by twip to streamers

This library is not an official library of twip. It was created to conveniently respond to events such as donation, follow, and hosting using the Alert Box provided by twip to streamers.

junah201 8 Nov 19, 2022
The Python agent for Apache SkyWalking

SkyWalking Python Agent SkyWalking-Python: The Python Agent for Apache SkyWalking, which provides the native tracing abilities for Python project. Sky

The Apache Software Foundation 149 Dec 12, 2022
Grail(TM) is a web browser written in Python

Grail is distributed in source form. It requires that you have a Python interpreter and a Tcl/Tk installation, with the Python interpreter configured for Tcl/Tk support.

22 Oct 18, 2022
Python Freecell Solver

freecell Python Freecell Solver Very early version right now. You can pick a board by changing the file path in freecell.py If you want to play a game

Ben Kaufman 1 Nov 26, 2021
Sacred is a tool to help you configure, organize, log and reproduce experiments developed at IDSIA.

Sacred Every experiment is sacred Every experiment is great If an experiment is wasted God gets quite irate Sacred is a tool to help you configure, or

IDSIA 4k Jan 02, 2023
*考研学习利器,玩电脑控制不住自己时,可以使用该程序定日期锁屏,同时有精美壁纸锁屏显示,也不会枯燥。

LockscreenbyTime_win10 A python program in win10. You can set the time to lock the computer(by setting year, month, day), Fullscreen pictures will sho

PixianDouban 4 Jul 10, 2022
Account Manager / Nuker with GUI.

Account Manager / Nuker Remove all friends Block all friends Leave all servers Mass create servers Close all dms Mass dm Exit Setup git clone https://

Lodi#0001 1 Oct 23, 2021
Sudoku-Solver

Sudoku-Solver This is a personal project, that put all my today knowledges to the test, is a project that im developing alone with a lot of effort and

Carlos Ismael Gitto Bernales 5 Nov 08, 2021
PREFS is a Python library to store and manage preferences and settings.

PREFS PREFS is a Python library to store and manage preferences and settings. PREFS stores a Python dictionary in a total human-readable file, the PRE

Pat 13 May 26, 2022
🎉 🎉 PyComp - Java Code compiler written in python.

🎉 🎉 PyComp Java Code compiler written in python. This is yet another compiler meant for babcock students project which was created using pure python

Alumona Benaiah 5 Nov 30, 2022
A faster copy of nell's comet nuker

Astro a faster copy of nell's comet nuker also nell uses external libraries like it's cocaine man never learned to use ansi color codes (ily nell) (On

horrid 8 Aug 15, 2022
Openfe - Alchemical free energy calculations for the masses

The Open Free Energy library Alchemical free energy calculations for the masses.

33 Dec 22, 2022
A collection of UIKit components that can be used as a Wagtail StreamField block.

Wagtail UIKit Blocks A collection of UIKit components that can be used as a Wagtail StreamField block. Available UIKit components Container Grid Headi

Krishna Prasad K 13 Dec 15, 2022
MobaXterm-GenKey

MobaXterm-GenKey 你懂的!! 本地启动 需要安装Python3!!!

malaohu 328 Dec 29, 2022
A simple calculator that can add, subtract, multiply or divide depending upon the input from the user

Calculator A simple calculator that can add, subtract, multiply or divide depending upon the input from the user. In this example, we should have the

Jayesh Mali 1 Dec 27, 2021
3D Printed Flip Clock Design and Code

Smart Flip Clock 3D printed smart clock that puts a new twist on old technology. Making The Smart Flip Clock The first thing that must be done for thi

Thomas 105 Oct 17, 2022