Impossible to rename scripts? No option to rename?

Impossible to rename scripts? No option to rename?

dewaine50
Advocate Advocate
849 Views
3 Replies
Message 1 of 4

Impossible to rename scripts? No option to rename?

dewaine50
Advocate
Advocate

So I ran across an unexpected missing functionality error wherein it is outright impossible to rename scripts. Is this just not possible and not mentioned? Do I have to start a brand new script and copy over if I have to rename it?

 

Replicate error: In Visual Studio, just go to the lefthand side in the editor and rename the script file. Attempt to do the same in windows explorer filesystem brower. Either way, it'll disappear from your list of "ADD-INS -> Scripts and Addons". There is no option when rightclicking on the list of scripts to rename them.

 

How is this expected to function?

0 Likes
850 Views
3 Replies
Replies (3)
Message 2 of 4

Rushikesh.kadam
Autodesk
Autodesk

@dewaine50 

I see that there is no option to rename a script through Scripts and Add-ins dialog. As a workaround I follow below steps:

  1. Go to the folder containing the script you want to copy. Path can be obtained from Full Path section of Scripts and Add-ins dialog, under Details section, after selecting the script under My Scripts.
  2. Copy the parent folder containing the script.
  3. Rename the copied folder to required name.
  4. Inside copied folder rename .manifest and .py file with same name. In Scripts and Add-ins dialog the copied script will be listed.

If it works out, do click on accept solution button.




Rushikesh Kadam
Senior QA Engineer
Quality Assurance
Autodesk, Inc.


0 Likes
Message 3 of 4

prainsberry
Autodesk
Autodesk

That is correct.   For Fusion 360 to properly recognize a script or addin, there must be a folder that contains a .py and .manifest file, all with the same name

 



Patrick Rainsberry
Developer Advocate, Fusion 360
0 Likes
Message 4 of 4

jc8000
Participant
Participant

you can literally just rename the folder, .manifest, and .py files to whatever you want. close and reopen the scripts and add-ins window and the new name will appear.

0 Likes