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)
The repository is about 100+ python programming exercise problem discussed, explained, and solved in different ways

Break The Ice With Python A journey of 100+ simple yet interesting problems which are explained, solved, discussed in different pythonic ways Introduc

Abdullah Al Masud Tushar 2.2k Jan 04, 2023
python for windows extensions

This is the readme for the Python for Win32 (pywin32) extensions source code. See CHANGES.txt for recent changes. 'setup.py' is a standard distutils

27 Dec 08, 2022
[arXiv 2020] Video Representation Learning with Visual Tempo Consistency

Video Representation Learning with Visual Tempo Consistency [Paper] [Project Page] News Full codebae is coming soon Pretained Models For now, we provi

DeciForce: Crossroads of Machine Perception and Autonomy 24 Nov 23, 2022
Spinning waffle from waffle shaped python code

waffle Spinning waffle from waffle shaped python code Based on a parametric curve: r(t) = 2 - 2*sin(t) + (sin(t)*abs(cos(t)))/(sin(t) + 1.4) projected

Viljar Femoen 5 Feb 14, 2022
CHIP-8 interpreter written in Python

chip8py CHIP-8 interpreter written in Python Contents About Installation Usage License About CHIP-8 is an interpreted language developed during the 19

Robert Olaru 1 Nov 09, 2021
ToDo - A simple bot to keep track of things you need to do

ToDo A simple bot to keep track of things you need to do. Installation You will

3 Sep 18, 2022
Delayed iteration for polling and retries.

Does Python need yet another retry / poll library? It needs at least one that isn't coupled to decorators and functions. Decorators prevent the caller

A. Coady 22 Dec 29, 2022
fast_bss_eval is a fast implementation of the bss_eval metrics for the evaluation of blind source separation.

fast_bss_eval Do you have a zillion BSS audio files to process and it is taking days ? Is your simulation never ending ? Fear no more! fast_bss_eval i

Robin Scheibler 99 Dec 13, 2022
WGGCommute - Adding Commute Times to WG-Gesucht Listings

WGGCommute - Adding Commute Times to WG-Gesucht Listings This is a barebones implementation of a chrome extension that can be used to add commute time

Jannis 2 Jul 20, 2022
An addin for Autodesk Fusion 360 that lets you view your design in a Looking Glass Portrait 3D display

An addin for Autodesk Fusion 360 that lets you view your design in a Looking Glass Portrait 3D display

Brian Peiris 12 Nov 02, 2022
Sudo type me a payload

payloadSecretary Sudo type me a payload Have you ever found yourself having to perform a test, and a client has provided you with a VM inside a VDI in

7 Jul 21, 2022
Structural basis for solubility in protein expression systems

Structural basis for solubility in protein expression systems Large-scale protein production for biotechnology and biopharmaceutical applications rely

ProteinQure 16 Aug 18, 2022
Python with braces. Because Python is awesome, but whitespace is awful.

Bython Python with braces. Because Python is awesome, but whitespace is awful. Bython is a Python preprosessor which translates curly brackets into in

1 Nov 04, 2021
Python MQTT v5.0 async client

gmqtt: Python async MQTT client implementation. Installation The latest stable version is available in the Python Package Index (PyPi) and can be inst

Gurtam 306 Jan 03, 2023
Lightweight library for accessing data and configuration

accsr This lightweight library contains utilities for managing, loading, uploading, opening and generally wrangling data and configurations. It was ba

appliedAI Initiative 7 Mar 09, 2022
Aim of the project is to reduce phishing victims. 😇

Sites: For more details visit our Blog. How to use 😀 : You just have to paste the url in the ENTER THE SUSPECTED URL section and SELECT THE RESEMBELI

0 May 19, 2022
Construção de um jogo Dominó na linguagem python com base em algoritmos personalizados.

Domino (projecto-python) Construção de um jogo Dominó na linguaguem python com base em algoritmos personalizados e na: Monografia apresentada ao curso

Nuninha-GC 1 Jan 12, 2022
Encode stuff with ducks!

Duckify Encoder Usage Download main.py and run it. main.py has an encoded version in encoded_main.py.txt. As A Module Download the duckify folder (or

Jeremiah 2 Nov 15, 2021
Simple Denial of Service Program yang di bikin menggunakan bahasa pemograman Python,

Peringatan Tujuan kami share code Indo-DoS hanya untuk bertujuan edukasi / pembelajaran! Dilarang memperjual belikan source ini / memperjual-belikan s

SonLyte 8 Nov 07, 2021
Choice Coin 633 Dec 23, 2022