Editing a SU8 script
-
Good day everyone,
I am an intermediate SU8 Free user. I have downloaded MAKE. Almost all my plugins from SU8 work in Make, and if not, I have found a compatible script for MAKE. I am a fine woodworking professional. I have two scripts from SU8, that are used in almost every model I make, therefore I MUST have for Make. Neither work in MAKE. I downloaded Ruby Script Editor by A. Schreyer. I am not familiar with ruby scripting, but am willing to try. I'd like to know if there's anyone who's willing to show me how to edit these scripts to make them viable for use in MAKE.
When opening the script in the editor both have granted permission to edit. I have enclosed a cap of the error message I get for one of them and am hoping someone will help.
Thanks in advance for any help provided.
Jo
-
Which plugin exactly is it that you are trying to edit? Is it the one that only draws the outline of the joint like this?
You don't need to edit the script to get it to work in Make. I made this screen shot from SU2013. Very likely you don't have permissions for the Plugins folder set correctly. Try setting the permissions for the folder so all users have access and reinstall the plugin.
-
This error suggests that the line
require('langhandler.rb')
is missing from the very beginning of the script.
If a script that loaded earlier has already 'required it' then it's already loaded and there is no error.
But if not you get the error...
ypically tThe three missed 'require' calls are
require('langhandler.rb') require('sketchup.rb') require('extensions.rb')
Often these omissions will cause no errors at all, because an earlier loading script has already done the 'require' for them.
But if not, then you'll get your weird error message...
Add therequire('langhandler.rb')
line at the start of the script, in its own line... -
There is no require('langhandler.rb') in the beginning of the script and it works fine for me but perhaps I haven't got a plugin loading before it that cause this one a problem.
-
You misconstrue...
This plugin needs'langhandler.rb'
, if an earlier loading plugins have already done arequire('langhandler.rb')
then this plugin will use it and everything is fine.
BUT if there is no priorrequire('langhandler.rb')
this plugin will fail because'langhandler.rb'
has NOT been loaded !So in that case you must add
require('langhandler.rb')
at the start of the script...You might have a dozen scripts that need
'langhandler.rb'
, but the first one to 'require
' it 'loads' it for all of the rest, so they don't need to worry about it - any of their requires is superfluous, if they miss a require it doesn't matter because another script has fixed it for them...
The issue arises when a script that needs it is loading without a proper 'require
' AND because it has not been saved from its embarrassment by a preceding script already having required it, then it fails to load...
Adding
require('langhandler.rb')
on its own line at the start of the script will do no harm: it will fix any relates errors that might occur, if they don't, then it does no harm anyway - it's the way the script should have been written in the first place ... -
Ah! My mistake. Since it is on the radar now, I'll add it.
Of course I have a better dovetail plugin so I don't know why I have this one.
Thank you.
-
So now do you have a 'sketchup.rb' in the Plugins folder? There isn't supposed to be one there. It's supposed to be in Tools. Odd that you'd have to add a patch file for sketchup.rb. I've never found the need for that on either my PCs or my Macs.
Oh well, it works for you now so that's what matters.
-
We have got to stop meeting this way Dave and hello TIG. Thank you for your response. While I was waiting for a reply I was looking at the script in the ruby editor and saw a line that said "requires sketchup.rb. Did a search, found this:
http://sketchucation.com/forums/viewtopic.php?f=180&t=43683&start=0, loaded it and voila, it worked!
I don't know Dave, but the patch worked. Wished my nicotine patches woke as easy. (Day 8 of trying to quit smoking)
Anyway, this is a different one and I enclosed a cap: trying to get this to work in MAKE:
This is only one in a suite of others I need. Any thoughts?Thanks in advance.
Jo
-
updated previous post with pic of another problem
-
"Permission denied" looks like a permissions problem. Have you edited the Plugins folders permissions to allow all users full access?
Advertisement