[Plugin] Gradientator v1.21
-
That works, Cheers Sd.
-
Thx a bunch Mitch.
Just plain fun to mess with.
Works toodtr
-
In SketchUp 2015 I get the following error after the install:
Error: #<SyntaxError: C:/Users/nessuno/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/gradientator.rb:79: formal argument cannot be an instance variable
...ck("get_data") do |@grad_dialog, action_name|... ^>
C:/Users/nessuno/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/rubytoolbar/rubytoolbar.rb:144:inload' C:/Users/nessuno/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/rubytoolbar/rubytoolbar.rb:144:in
rt_load'
C:/Users/nessuno/AppData/Roaming/SketchUp/SketchUp 2015/SketchUp/Plugins/rubytoolbar/rubytoolbar.rb:190:inblock in <module:RubyToolbar>' SketchUp:1:in
call'I solved changing row 79 to the end of the do block in this way
@grad_dialog.add_action_callback("get_data") do |grad_dialog, action_name| if action_name == "begin_gradientating" @grad_dialog = grad_dialog @coloronename = @grad_dialog.get_element_value("color_one_name") @colortwoname = @grad_dialog.get_element_value("color_two_name") @colorthreename = @grad_dialog.get_element_value("color_three_name") @grad_dialog.close gradientate(@coloronename,@colortwoname,@colorthreename,@faces,@model) end if action_name == "close_this_window" @grad_dialog.close end end
-
So do I. Would love to try this plugin....
-
@utiler said:
So do I. Would love to try this plugin....
Andrew, did you try the solution offered by sdmitch? I just tried it and that makes it work in SU2015.
-
@utiler said:
So do I. Would love to try this plugin....
The post just before yours offers a solution http://sketchucation.com/forums/viewtopic.php?p=575140#p575140, and @sdmitch gave an even simpler version a few posts earlier http://sketchucation.com/forums/viewtopic.php?p=541222#p541222
Just edit the RB using a plain-text editor like Notepad++, then find thedo |@grad_dialog,
text around line #79, and remove the@
so it'sdo |grad_dialog,
.
Save the RB and restart SketchUp...
Since the@grad_dialog
is defined earlier it is not necessary to redefine it in thedo
block, so using ANY name which doesn't start with a@
will work ! -
Thanks Dave / TIG. Trust me to jump into a new plugin without reading through recent posts.... Cheers, I'll give it a crack tonight!
-
Worked a treat, guys. Thanks!!!
I'll post in a few days what I needed it for. Glad to share....
-
Works fine!
-
hi, just landed on this post. the plugin is not working in make 15/16. i can select it in both Make 15 as 16, but it's not doing anything.
i've used v1.21. downloaded it to C:\Users\YOUR USERNAME\AppData\Roaming\SketchUp\SketchUp 201X\SketchUp\Pluginsthanks for your thoughts!
-
@gianfrancogalli said:
hi, just landed on this post. the plugin is not working in make 15/16. i can select it in both Make 15 as 16, but it's not doing anything.
i've used v1.21. downloaded it to C:\Users\YOUR USERNAME\AppData\Roaming\SketchUp\SketchUp 201X\SketchUp\Pluginsthanks for your thoughts!
http://sketchucation.com/forums/viewtopic.php?f=323%26amp;t=45951%26amp;p=601292#p541222
-
why is it not functioning to my sketchup 2017?
-
The script needs some editing to work. Scroll up a few posts and read what sdmitch wrote. Edit the .rb file to make that change and it'll work. this is in SU2020 after editing the script and installing it.
-
Does anybody have the repaired file. When I open the RBZ file using note pad, I get a bunch of garbage. I have tried all the standards when opening.
Thanks,
-
Download the .rb file from the first post of the thread and make the edit according to the this post.
-
I have tried this fix but when I go to notepad or any word process to open I get this -(on PC)
PK 쉄B4‹"Ût $ gradientator.rbYûsÛ6þÙéÿ€Ò7gi,ÓŽÓÞñܼsžKš'éM'ÓÑ€$(¡¦¸±ÿ÷û IP–œô&±FÝÅ>¾}p—½_Èšá?gµ\V…`F©¬Ò*Y£yQ\³¹(…æF`›Yh!RU(ÍæšgR”†©’-EÍTÎržŠ;þö›]öÊïàÛ“kVq%˜&Ž…LEY‹Œ5e&4Î?Ó‚‰ÇÏÔr©Êš=1Fˤ1R•?©’–…N%/Þ-¸O y)ØÃøˆ}(+¥ H½v4‰5qÙh³z©´˜@p0UnV8Kà†W2鈓 "ÆËŒ¤Y¨Æàû5Ÿ*-jÜòB7[qVóÒàž&Ë´h2YÎ'í)âYÈ¥Äu!3±N’†è"üä‰,¤¹¶¬siJb—+ÒFŵ‘iSpͪFW*¸žÓ• ¶.-/²€½`U4s Ö0%¯»’µ4laLurxˆÝͲŽëKaÒE“Úƒqª–‡WR¬ŒªdW‹êÇ|úðøá_ÍôûþùÃÏs`Ç«ñqûàg¡kâ_*#ê¿h7ÐvÀžd¤â«p›{ð†g‚ýW$ÏaP5gдüƒ',EÊ0ð;¡ã€ §÷j›E®%m¯ÉYeY^¦¢_õ<T&sÒ>Ybů™õ[x;´—ò‚Ô·yÄæ '㢆¹Ôµ™°¥Ì²Vž‚צ=½’EÁCÍÒS’gÓ¹¦v"bÒòyY5&QŸHRÞ_Ù¹Íæ@ËX¦Uu©ˆ«O.š¼&Z;”Ÿ°IæÏYÂ3Hþ’<…óà6£•æU…mÎ/ (Xª¬¡{Á Æ¡‘8=÷¢rcEON•D“d/ µê.J+µ(DêvZ\h5$K»ÖâCÈ$z.½r–ì–à‘.y'KxÊbö¦IÁ°ƒƒ4…©¿cïEŸ”rä•ò”×2e0fâCþ";øEÐ^Ëe'«*‹ëo¿ùö-~o$übÏÇGëd8u±w³0 èÉÎ.„1†Ôó󋋧oß½ ¥”² j] Ü;Q ddåîýʾàf‘4>vÁ ŒKæƒLðÿ/-ù)Q·¬3‘“úóXU¢\IÜw5‚5whûN—éB¤—äp×LUäY–ÿ+¥æ…ðäwûøœy%d`ô÷øÈ2Ú‘9½kuâ7ÆFÍrvÊî´"Xš;Îã%ð†‚C¢_TÖ t°àWÝe+±ý»Tˆ|éS7l‹ÙÏÔ;3ÍÝU d´»©Èê"Žœ$Z˜F—P¢ÌZ=†]E‹vw£ ¹3»Þki'‘¥p©š\ßgPºvv"ÑŒÐ~É/q$™b{`=JmÊc ܆¼«;#õ †` ¸š}8gyÁçä7µ0t÷ºläî‘4KS{I?xjªŒ[ßsÖ¯)†ˆ“u¨»µ6ÅkAâC¸Mà•Ú•‰;E¶¥53µ¤¿/¹f ÈQCÅD}´àg„lˆj½N‹ª™/<ؤÉ3BMÜ‹$çä. °’Tȵ•…ÃQ„¯?ÓKâOY+RKÕûÌnÄ ±¬güÇΧON^âؘÝöÂ]X¯© …Ö”ÿó÷2™•{¦Å>*,Û ëö][Pñ; ÑL[9Øç„QÎáWÓ);Ú;ïq$á.ÃìnÓ_«†Jro|e+ÕÈ`T-‘æª ²`k”O¹¨¹#‡\!ùœSÔ±—ôrByãä¡«w*ö˜ílf3$/ê.CˆlNrŠ£öwŸH£¨ŽIm”óRiç‡á‡ípðnT[DFh„‰ÖûNCÅ&WÖŠ6Ó¹èÝÁ~¿»¸+Œ4”+ð7WŸh$ÅÚèkv Kûç+™™Å„-„œ/P…Èñ‰šjÒ6½›’êg™ã5eÎON;Þq)V£(¼7"'‡*Á#Â×ãMØÃ#|ÿ ¾?r5^'—7³„§—sDX™Íl¶EÏÒ¿(ÈïAìUÂâœÁÇôj!¡ôIe ¡©ü|„£v–CE!©ÞvUà pUŽ«¥Ó5Óia5fÜúØŒØÐFÑ·üñhÌ2Ån¿¹äKqãRÅ[°JÑY!gó¤Êyd÷ºÜyl5¦JáN°LÄž ,5³+^4bÙí3ì·,¼³z*f¥þìßD…J¬?G‡N)…ç¬%Üz¯1Ü|2¸ÁdM’‰C±‰Üq ?“;ÛÔoyÏgfÎøCåoóéAè¿òÕ³-¾Ð;RÙê|ºÒ²¦Î«t¿ ^vPaQš Œö±?JÐùÚ\Sšâs›uPt¡p•qZ®¤³‚£\õ¨9øu)#儬hAÚ rGP+]t^—`6îýß>§Žñ;(PNNžÑrL;¬í¶…Yv«•Z6PˆI,—úz‹<6bY9)60+æ¾Æa,Ný£M÷¢}±í9=M{¥¸ Á‰ž'£h¿g·ÅÝ~4¬ÏÉ¡6>IÀÆ?ŸYn§‡N„³ˆµ× r·hPö$õŠ<¶ª³)¯3ý¿Þ¿y.ÏŽ;ºÔà!«‡â!‘& «½SúrvJÕRc^WbñÉþƯ¸[Îò¦tY‘ë¢I® ÑGcöù÷Fh²iT_V'-ˆ=¦"x# =òÀX(ß®#ðr·dÝÞaóŒBå|îFÞ¸œºk¦Lè³ÓÄý½sÉÝ; {pÂ;õù^fÓu@<ÛÛzÓþÛí› o&ØaãŸ&øpÁ$¿†ä©«œá“Æ ýŽ ,i ɽ#%{ûoûWöVìO?£†¹ …NˆÃÖ‡Ö÷6fN*èñ¨÷à uÂB¨çáE×?TÙ.{O€Ú¶F3ìAÃì1HƒÜ±–;\æè‡ß'†Bß´5&E¤ƒòÚu=ú»ºÙd×9k«ä7˜Ž·óZìQž@a‚Úl9a°;vL‹>9¸R°R•9IZ~{TsÃ%/<ëŸ íÁ‰£°£T†æ‰® ÉÉ"(wlä·?úÂc2‡ @Ë÷ðF؉Í}GZSÙCðÛšE]¬ï~帰‹WOiµ“ž ËáŠùµ5‚÷Ûè‡ãŽƒ|–×8ÐÊ;ZÛÂáaÏ¡½çô`‹]»ÃÇ®öœè…ê;ÞMÝ`¤ŠžÒºuèóRþ!l©‚賜›T}õÕAÙó)M/©0S1Í+™!ÝÙÍ&ºz£¦QÚJ—ç–èêÚõQ7£Aùªkq©Éæ1gP«@?õBæ†Ã—Fã°6p‡ñáhv½vŠ4><è$Ö %Où~JÖ;›d²RÙ•¯¥vG²!½ŽÃýôÈK6 GëÙhá+IÝ‘l@¬¥~/±Ö—º W–Ò e Ã]HT·mË.~o¸}Oä‹ßR"á…ñN‡`öJÝ´«+ó¶µUa¾VøýFÆK!*ÔëÕ(ÅEEÎ5ÂAÑ´Ì5»[Ô°oÕÁõA0\€2ý”M‹+©š‘Ö”Jg‚¼ÔM`\桤 (éøŸíQ6+;‘;2 T¬W¦9…íïig?(*ël)×}6¼8NД}¶%²³¾mnèû s>Ò_§o/Î_ÿ·òYg‰ªçëØãžÙÃŽkh…¡Ãà“ä†ñ~e§Ó3–ЗÛxÉ+zVÞ°òãѯá”íCyàæ‘ÆO…h8“‰¤™Ïí[÷Ú‹Þ´å¬Ú8ñGŽ¿´Rì~]ú–-x‘cñ®£ÃÏcÛ›8ˆÞ ’Qñï £ÅõÖÓnÏÏTƒgÇá3ŠÁÛ8äó„½£@uœ<`ÚXÙß=<ä|z÷|²v>žOúTäÇu7oW¨ì픵 gÒ~¨;qƒÂ¾‡Öš¼xI3éBŸÜ¨s´À³ØM~Ó§½Ýþ32‡ ér›5µ}7A3\†•—%¢U|â©AdÙ~YRÞ"9H éÊ'Ûi[ït<œŽhÁšÀFîm«3#½ÒÂ… g|`?ò¸»ð”}ÍyÒ„ €¬[¨¹µ_ƒÎ»–},šÎs`Ó ‰<˜^V¶ÆÚ„SvÚì‡ ‚xÖPSÒ × x»šPé š³ãȪm‰ãžgA 3jÕ²åRlñm®ü¶’èjUÞB(Ùôtí‹êÿ—.‰ßÓµym0Sê1š²ßö€ïmLN¾¦è&O2S—Úý¦Mi©Í²=7QÔ¡”§l“Œ[„ƒwô•Õ&Ñö§,,t6F;z4Ù*”Š5ÃmÒV[“ݧŠ®¹W©} 5N|…J’/«$ù’J’-3Å.E¹·Hë¯üîm’ÃNxLÃçÁ¶7[_%ïÒëñà}‡hçˆ4i·/ôh¨U61m¦|ˆfX³Bq$ÆG/ñ#Nxm™Ñlöòüõ‹Ùlì;uÛ{”Í(ú£íX]¢×;‘«×Ä;9 ;›ÀíµH’@„0¼áúÒ5ónnæÎÄÿPK 쉄B4‹"Ût $ gradientator.rbPK = ¡
-Mark
-
An RBZ file is a type of Compressed ZIP file - hence the PK at the start of the opening in Notepad++
You cannot edit it that way.Take the RBZ and install it, that should leave you with an RB file containing the script's code.
Edit that RB file as explained in earlier posts, using Notepad++.Replace that RB in the Plugins folder and restart SketchUp to se the changes.
An alternative is to use the RB file directly, or rename the RBZ with a .ZIP file-type suffix and extract its contents.
The result will contain the RB code file etc - proceeded as directed previously... -
how do i install this plugin to SketchUp pro 2022? i tried to add it from extension manager but it didn't appear after i enabled it.
-
@sywong425 said:
how do i install this plugin to SketchUp pro 2022? i tried to add it from extension manager but it didn't appear after i enabled it.
Scroll up a few posts to one made by SDMitch which shows the fix to make this work. I haven't tried it in SU2022 but I'll give it a try.
Advertisement