My first add-in: Visual Styles

My first add-in: Visual Styles

pawelzwronek
Advocate Advocate
11,504 Views
99 Replies
Message 1 of 100

My first add-in: Visual Styles

pawelzwronek
Advocate
Advocate

Hello everybody.

Today i want to share with you my first addin I have created couple days ago. Because my previous idea of "Customized bottom navigation bar" gained whole 10 kudos i decided to write some kind of substitute of this idea. Fell free to download and test it because it's free 🙂 Below screenshot and link to appstore.

MAC and PC

 

What it does?

Simply a couple of buttons to quickly change visual style of active viewport.

 

Want to contribute?

Visit github.com/pawelzwronek/fusion360-VisualStyles

 

P.S. If you like it (or not) and use it please leave a comment in App Store to give me motivation to make it better or to write next one.

 

 visualstyle screen.png

Accepted solutions (1)
11,505 Views
99 Replies
Replies (99)
Message 21 of 100

elias
Participant
Participant

On a Win workstation I get both the Preferences dialog and the Visual Styles Setup submenu and it works great.

 

When I try on a Mac, I do not see the Preferences dialog nor the Visual Styles Setup submenu. If I hit details on the Scripts and Add-Ins panel, it says Version = 1.0 . Is V1.2 available for Mac?

0 Likes
Message 22 of 100

pawelzwronek
Advocate
Advocate

First try reinstall by following this steps: http://forums.autodesk.com/t5/api-and-scripts/my-first-add-in-visual-styles/m-p/6789299#M2678

When this doesn't help try solution described few post after linked above.

0 Likes
Message 23 of 100

elias
Participant
Participant

Thanks for the response.

 

The issue is not that I cannot install the add-in in Mac OS. It installs just fine. I removed and tried the second method you pointed out too and it installs just fine as well.

 

The issue is that the Mac OS pkg installs v1.0, not v1.2 . Therefore there is not an option to save one's preferences and there is no Visual Styles Setup menu either. Is there a v1.2 for Mac or just v1.0?

 

0 Likes
Message 24 of 100

elias
Participant
Participant

 Update:

 

Here's the header of VisualStyles.py in Win:

 

#Author - pawelzwronek(aka blowman3)
#Description - Quick change visuals style of active viewport
#Modified source of Show Hidden by Patrick Rainsberry

#Changelog
# v1.0 - Initial version
# v1.0.1 - Hiding buttons in 'COMPARE' workspace
# v1.2 - Customization and saving preferences to local disk and on cloud

 

Here's the header of VisualStyles.py in Mac:

 

#Author - pawelzwronek(aka blowman3)
#Description - Quick change visuals style of active viewport
#Modified source of Show Hidden by Patrick Rainsberry

#Changelog
#v1.0 - Initial version
#v1.0.1 - Hiding buttons in 'COMPARE' workspace

 

I just copied the VisualStyles.py from Win to Mac... and long and behold, v1.2 working in Mac. It seems that the latest update was omitted from the Mac package.

 

0 Likes
Message 25 of 100

pawelzwronek
Advocate
Advocate

You are right. I've submitted twice already v1.2 on MAC but somehow server is getting confused and publish old version 1.0.1. I'll write to AD, maybe they'll help me.

Thx, for pointing me out this oversight.

Message 26 of 100

JetForMe
Collaborator
Collaborator

Thank you, I thought something like this was happening.

MacBook Pro, PCNC1100 Series 3, Slant-PRO 15L Lathe, Custom AvidCNC-based 4x9' CNC Router w/24k 4.5 kW HSD Spindle & Teknic SDSK Servos
0 Likes
Message 27 of 100

pawelzwronek
Advocate
Advocate

Fixed. Now installer on MAC is also v1.2.

People everywhere, listen to me! Version on MAC is updated! I repeat, on MAC is updated 🙂

Message 28 of 100

KirillChepizhko
Advocate
Advocate

Dude!!! Amazing work !!! Thank you so much for creating this. Is there any chance you could  create a dark theme for the UI ?

0 Likes
Message 29 of 100

matthewsclark
Enthusiast
Enthusiast

Hi, I think I'm having a problem with your plugin - see this post here, quoted below.

http://forums.autodesk.com/t5/design-validate-document/visualstyles-cloud-preferences-not-created/m-...

 

"Hi, I get the message you can see on the attached screenshot every time I launch Fusion since the last update. I click yes every time, but I can’t find the Visual Style drop down menu referred to in the dialog box tip.

There is Visual Styles setup in the Display Settings menu, which include a checkbox for Local Preferences, which is unchecked.
Am I missing something or is this a bug?

 

Thanks, Matt"
0 Likes
Message 30 of 100

pawelzwronek
Advocate
Advocate

The 'Visual Styles setup'  dropdown menu is the 'setup' from the dialog box tip. There is nothing more.

 

 

The problem with permanent showing of dialog box is weird 🙂

 

1. Please check if Fusion create project called '_Preferences' after you click 'Yes'. If yes then it's even more weirder... when no, it's still interesting why not and you can only switch to 'local' preferences by checking last checkbox in 'Visual Styles setup'  dropdown menu.

 

2. Please try clicking 'Cancel'. I can see the buttons order is reversed on Mac. On PC it's:  'Yes, No, Cancel' . Maybe it'll works as 'Yes' 🙂

 

0 Likes
Message 31 of 100

GMDCNC
Advocate
Advocate

I am having the same problem. That screen pops up every time I open Fusion. I've tried clicking all three buttons, and it did not create a project called "_Preferences".

 

Edit: I manually created a project called "_Preferences" and it seems to be working now.

0 Likes
Message 32 of 100

matthewsclark
Enthusiast
Enthusiast

Tried your suggestion, No project called preferences was created after clicking Yes, No, or Cancel. I Manually created a project titled _Preferences. I no longer get the dialog box popup when Fusion launches, however, there are no files in the _Preferences project.

 

Thanks

0 Likes
Message 33 of 100

GMDCNC
Advocate
Advocate

It didn't create any files in mine either. I suspect it is just looking for the project name with some true/false logic.

0 Likes
Message 34 of 100

pawelzwronek
Advocate
Advocate

If you click 'Wireframe' checkbox 6 times in a row logging to file will be enabled. Try this, but hold with enabling logging:

 

1. Switch to 'local' preferences by setting 'Local preferences' checkbox.

2. Delete(archive) project called _Preferences if any exists.

3. Enable logging by clicking 6 times in a row 'Wireframe' checkbox.

4. Switch to 'cloud' preferences: uncheck 'local preferences' checkobx.

5. Click 'Yes' on dialog box.

6. Post created log as attachment.

 

0 Likes
Message 35 of 100

matthewsclark
Enthusiast
Enthusiast

Following your instructions, it created the project, folder, and file as you previously described it should. When I restarted I got no pop-up. Looks like it works following your steps, thanks.

0 Likes
Message 36 of 100

pawelzwronek
Advocate
Advocate

I meant a file from the picture but if it's working now then I'm happy.

11.png

0 Likes
Message 37 of 100

JetForMe
Collaborator
Collaborator

I still can't even get it to install on macOS any more. I'm not sure what's wrong.

MacBook Pro, PCNC1100 Series 3, Slant-PRO 15L Lathe, Custom AvidCNC-based 4x9' CNC Router w/24k 4.5 kW HSD Spindle & Teknic SDSK Servos
0 Likes
Message 38 of 100

pawelzwronek
Advocate
Advocate

Did you try solution from luca.giorcelli ?

0 Likes
Message 39 of 100

JetForMe
Collaborator
Collaborator

I have valid aliases in those locations. The other plug-ins I have work fine, so I don't think this is the issue.

MacBook Pro, PCNC1100 Series 3, Slant-PRO 15L Lathe, Custom AvidCNC-based 4x9' CNC Router w/24k 4.5 kW HSD Spindle & Teknic SDSK Servos
0 Likes
Message 40 of 100

luca.giorcelli
Enthusiast
Enthusiast

@JetForMe 

 

I have the pluging up and running in OSX. I just want to point out that in my installation I do not have any alias, instead I have the bundle itself. See screenshot taken from this path /Users/lucagiorcelli/Library/Application Support/Autodesk/ApplicationPlugins

 

Screen Shot 2017-02-07 at 12.10.09.png

 

This is what I have done:

 

  1. Unpack VisualStyles-macos.pkg, I've used unpkg 4.5 available for free here
  2. Copy VisualStyles.bundle in this directory ~/Library/Application Support/Autodesk/ApplicationPlugins