Difference between V8 and 2013
-
You are over-thinking all of this.
Some tools will add attributes to a new SKP when they load.
They could add attributes to a new SKP when the tool is actually first used.
They will update these attributes as the tool changes anyway...
My 2dTools does this to set a default z-plane attribute, if there isn't one remembered [in an existing SKP that is reopened]. It is quite easy to disable it without consequences later...
The 'simple_loft_loader' could be uninstalled - it is pretty much superseded by Fredo's CurviLoft and/or my ExtrudeTools...
The other two plugins need to remember data, saved as attributes with the SKP, so they survive across sessions.
If you have opened a new SKP and a plugin auto-adds attributes to it as it opens, then it has been changed - so the prompt to save it will always happen.
Contact the authors of such plugins and ask if they can move the attribute addition into the tool's opening.
So, instead of them having some code executing as the plugin's code loads - i.e. it's written inside the module/tool-class but outside of a def method - in a form like:
Sketchup.active_model.set_attribute(someLib, someKey, someValue) unless Sketchup.active_model.get_attribute(someLib, someKey, nil)
They move that into the tool's classinitialize()
def method, so it then only gets called when the tool is used.
Then using the tool changes a new SKP, rather than simply loading it.
Later on their code will do something like this anyway:Sketchup.active_model.set_attribute('someLib', 'someKey', 'someUpdatedValue')
This will change the SKP and prompt a 'save' to remember these changes... -
TIG and mitcorb thanks for your reply. Well I didn't find this to be a major problem. However, I am trying to track down why my Ver 2013 seems to crash more that others, so I have been on a hunt to find the reason. Note that was happening on my old XP laptop.
Ver 2013 on my laptop, with XP was almost unusable. However, last week the company gave me a new computer with Win 7 pro. So I just loaded Ver 2013 and re-installed all plugins which I wish to use. So far so good.
Thanks TIG for the info about the plugin "simple_loft_loader".
And the above line leads me to another question, just how many plugins are duplicated, such that there are excellent, good and mediocre plugins that have the same objectives?
Ok, going to stop worrying about the extra save. Got work.
Again thanks for the input.
Ken
Advertisement