Tool Scale does not update dictionary. WHY? is Bug?
-
Tool Scale does (

) not update dictionary1 - Create a Dynamic Component "CUBE".
2 - Update LenX value and Click "Apply" ButtonResult: Component set new value and Dictionary "dynamic_attributes" is updated.
1 - Create a Dynamic Component "CUBE".
2 - (

) Tool Scale Component "CUBE" and Not Click in "Apply" ButtonResult: Component set new value and Dictionary "dynamic_attributes" is NOT updated. WHY?, is Bug?
I get source code of Apply Button in "C:\Program Files\Google\Google SketchUp 8\Tools\DynamicComponents\js\configurator.js" line 389
/** * Responds to requests (usually initiated via the UI) to apply any changes * made to the configuration panel so they appear in SketchUp. */ cfg.doApply = function() { var key; var parts; var entityID; var attribute; var value; var noRedraw; var attributeCount = 0; var changes; var elem; var name; // Current field isn't always picked up if the user didn't tab out but // instead just hit return...so grab its value. if (su.isValid(elem = document.activeElement)) { name = elem.getAttribute('id') || elem.getAttribute('name'); if (su.notEmpty(name) && (name != 'applyButton')) { // Force the blur of the currently selected element to ensure that // storeChanges for that value is fired. elem.blur(); } } // If the changed value list doesn't have values then we can simply return. if (su.isEmpty(su.getKeys(cfg.changedValues))) { return; } // The changed values hash can carry the data to be serialized for // transmission over the bridge, we just need to include the entities. comp.pushAttributeSet(cfg.entityIds, cfg.changedValues); cfg.changedValues = {}; };




Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement