Hello, I’m kinda confused about installing plugin .rb extension on my sketchup pro 2015.
The plugin’s name is muvizuaseexporter.rb
It’s to export file to Muvizu extension.
I’ve tried to put this file in win7/program files/sketchup/sketchup 2015/tools
I’ve also tried to put this in win7/users/nenene/appdata/roaming/sketchup/sketchup2015/sketchup/plugins
How old is the extension? The Ruby version used with SketchUp extensions was upgraded with version 2015 (or was it 2014?) and that made many old extensions obsolete. Is there a newer version of the extension available?
I have widows 7 and the install path is: root directory is winC.… just paste the rb into that plugin. You still have to make sure the plugin is compatible with the API per Anssis note.
Make sure you cleanup the bad install paths.
I had a quick search for issues and found a couple…
after changing the encoding, replacing the tabs, fixing the 8 fatal errors I ran a ruby lint plugin and got this…
1 file inspected, 5251 offenses detected
it is fixable, so maybe you should contact the author and suggest that they run rubocop on it…
I’ll try it Thank’s!
I don’t know where to find another newer plugin actually.
I’m currently working on my short animation on Muvizu…without this plugin I can’t import from Sketchup
I have searched on Google and no newer plugin version.
I can’t promise this fix makes it work in newer SketchUps [I’ve not tested it], but it will allow it to load successfully…
In the line #883 [indicated in the error message] there is a space between the method and the opening parenthesis around its arguments:
continueResult = UI.messagebox ("You have selected the same component for the geometry mesh and the collision mesh. This is not recommended, do you wish to progress?", MB_YESNO, "Are you sure?")
Remove that one space, save it, and it then loads OK…
continueResult = UI.messagebox("You have selected the same component for the geometry mesh and the collision mesh. This is not recommended, do you wish to progress?", MB_YESNO, "Are you sure?")
The newer versions’ Ruby is not so forgiving of this kind of simple typo error.
The only file-path in the RB I downloaded is correctly escaped as: a_pTexturePath = "C:\\ut3\\toto.bmp"
and of course that subfolder/bmp etc will need to exist [it’s where the file(s) go etc]…
All of that is explained in the itemized list in the link below [item 4 and onwards],
There is also ‘HSKP2UNR_MUVIZU.rb’ linked in the same thread [ ** ], and that RB does have the non-escaped \ errors !
However, if that’s the file you meant, it’s NOT the same named RB as the original error message - it’s much longer and it doesn’t have the problem code at the given line #883 either…
Edit the script in a plain text editor. Notepad++ is a good one.
Open the plugin in the editor and make the corrections as given above. Then save the file. If the place you saved the file to is SU’s Plugins directory, then you just have to restart SU.
OR, if you don’t want to keep restarting SU, in the Ruby Console, type:
load “muvizuaseexporter.rb”
Press Enter on the keyboard. The response in the Ruby Console should be True.