Functions in Sticky to Make them Available to other Python Components? - Grasshopper2024-03-28T19:12:10Zhttps://www.grasshopper3d.com/forum/topics/functions-in-sticky-to-make-them-available-to-other-python?feed=yes&xn_auth=nohacking servicesWHO needs mon…tag:www.grasshopper3d.com,2019-03-20:2985220:Comment:19720072019-03-20T15:05:12.123Zjason mikehttps://www.grasshopper3d.com/profile/jasonmike
<div dir="ltr"><br></br>hacking services<br></br><br></br>WHO needs money??<br></br>need travel VISA??<br></br>PAYPAL AND BANK TRANSFER AVAILABLE<br></br>flight ticket available all destinations<br></br>ATM clone cards ready to ship all country<br></br>western union services back in the game <br></br>online shopping, ask me how it works<br></br>original FAKE or REAL id, dl, pp, skul docs available for all countries.<br></br><br></br>CONTACT ME NOW AT<br></br><br></br>watsap @0014242429194<br></br>icq @745215892<br></br>inbox @cleanhackdeals at gmail dot…</div>
<div dir="ltr"><br/>hacking services<br/><br/>WHO needs money??<br/>need travel VISA??<br/>PAYPAL AND BANK TRANSFER AVAILABLE<br/>flight ticket available all destinations<br/>ATM clone cards ready to ship all country<br/>western union services back in the game <br/>online shopping, ask me how it works<br/>original FAKE or REAL id, dl, pp, skul docs available for all countries.<br/><br/>CONTACT ME NOW AT<br/><br/>watsap @0014242429194<br/>icq @745215892<br/>inbox @cleanhackdeals at gmail dot com<br/><br/>NB: dont waste your time to contact for fb, ig or twitter hack... few serious buyers needed</div> If there are no connections a…tag:www.grasshopper3d.com,2018-05-16:2985220:Comment:19091762018-05-16T08:29:53.647ZDavid Ruttenhttps://www.grasshopper3d.com/profile/DavidRutten
<p>If there are no connections at all, then the solve order equals the draw order. However as soon as there's a connection between two elements, the receiving one will ensure that the providing one is solved first. So if you have a file with three objects (in draw order) {A, B, C} and none of them are connected, then the solve order will be {A, B, C}.</p>
<p></p>
<p>If both B and C are connected to the outputs of A, then the solve order will <em>still</em> be {A, B, C}.</p>
<p></p>
<p>If A is…</p>
<p>If there are no connections at all, then the solve order equals the draw order. However as soon as there's a connection between two elements, the receiving one will ensure that the providing one is solved first. So if you have a file with three objects (in draw order) {A, B, C} and none of them are connected, then the solve order will be {A, B, C}.</p>
<p></p>
<p>If both B and C are connected to the outputs of A, then the solve order will <em>still</em> be {A, B, C}.</p>
<p></p>
<p>If A is connected to the output of C, then the solve order will be {A{C}, B}, where A is initially asked to solve itself, but from within its own solution code it first triggers C.</p>
<p></p>
<p>If I were you I wouldn't rely on the order of things being in a specific way, not only is the above behaviour not a guarantee we make, it is already possible to develop custom components that subvert the default order.</p> Hi Mathias,
this is an old to…tag:www.grasshopper3d.com,2018-05-15:2985220:Comment:19092262018-05-15T20:14:24.903ZGiulio Piacentinohttps://www.grasshopper3d.com/profile/GiulioPiacentino
<p>Hi Mathias,</p>
<p>this is an old topic. Yes, now it looks like this is the case.</p>
<p>Thanks,<br/><br/>Giulio<br/><br/>--<br/>Giulio Piacentino<br/>for Robert McNeel & Associates<br/>giulio@mcneel.com</p>
<p>Hi Mathias,</p>
<p>this is an old topic. Yes, now it looks like this is the case.</p>
<p>Thanks,<br/><br/>Giulio<br/><br/>--<br/>Giulio Piacentino<br/>for Robert McNeel & Associates<br/>giulio@mcneel.com</p> @Giulio,
Are non-connected c…tag:www.grasshopper3d.com,2018-05-15:2985220:Comment:19092222018-05-15T19:51:30.900ZMathias s nhttps://www.grasshopper3d.com/profile/Mathiassn
@Giulio,<br />
<br />
Are non-connected components not activated in draw-order fashion? Those in back first, those in front last? Use ctrl+f or ctrl+b to move them.
@Giulio,<br />
<br />
Are non-connected components not activated in draw-order fashion? Those in back first, those in front last? Use ctrl+f or ctrl+b to move them. Ok. Thanks Mostapha!tag:www.grasshopper3d.com,2016-08-09:2985220:Comment:15792412016-08-09T15:30:24.844ZDevang Chauhanhttps://www.grasshopper3d.com/profile/devang
<p>Ok. Thanks Mostapha!</p>
<p>Ok. Thanks Mostapha!</p> These data are copied to stic…tag:www.grasshopper3d.com,2016-08-09:2985220:Comment:15789852016-08-09T15:26:37.961ZMostapha Sadeghipour Roudsarihttps://www.grasshopper3d.com/profile/MostaphaSadeghipour
<p>These data are copied to sticky once you let the ladybug or honeybee fly. When you open Grasshopper for the first time it should be an empty dictionary.</p>
<p>These data are copied to sticky once you let the ladybug or honeybee fly. When you open Grasshopper for the first time it should be an empty dictionary.</p> Hi Mostapha,
I wrote a small…tag:www.grasshopper3d.com,2016-08-09:2985220:Comment:15792362016-08-09T15:19:10.188ZDevang Chauhanhttps://www.grasshopper3d.com/profile/devang
<p>Hi Mostapha,</p>
<p></p>
<p>I wrote a small piece of code to undrstand what stickey is. I gather it's a dictionary that containes many of the classes, and a few class objects you created.</p>
<p></p>
<p>I am wondering why am I seeing only keys and values assigned by you. Is it because no other developer is using this method?</p>
<p></p>
<p>Is this dictionary a session specific? What I mean to ask is, is it created eveytime we start grasshopper?</p>
<p></p>
<p>Thanks,</p>
<p>Hi Mostapha,</p>
<p></p>
<p>I wrote a small piece of code to undrstand what stickey is. I gather it's a dictionary that containes many of the classes, and a few class objects you created.</p>
<p></p>
<p>I am wondering why am I seeing only keys and values assigned by you. Is it because no other developer is using this method?</p>
<p></p>
<p>Is this dictionary a session specific? What I mean to ask is, is it created eveytime we start grasshopper?</p>
<p></p>
<p>Thanks,</p> What I do is pretty simple. L…tag:www.grasshopper3d.com,2014-02-14:2985220:Comment:10089912014-02-14T02:42:14.651ZMostapha Sadeghipour Roudsarihttps://www.grasshopper3d.com/profile/MostaphaSadeghipour
<p>What I do is pretty simple. Ladybug_Ladybug component copies all the classes into sticky and then sets "ladybug_release" to True:</p>
<p><a href="https://github.com/mostaphaRoudsari/ladybug/blob/master/src/ladybug_ladybug.py#L1965" target="_blank">https://github.com/mostaphaRoudsari/ladybug/blob/master/src/ladybug_ladybug.py#L1965</a></p>
<p></p>
<p>So I can check this key and make sure ladybug is flying, otherwise I will ask the user to let it fly!</p>
<p></p>
<div class="line" id="LC35"> …</div>
<p>What I do is pretty simple. Ladybug_Ladybug component copies all the classes into sticky and then sets "ladybug_release" to True:</p>
<p><a href="https://github.com/mostaphaRoudsari/ladybug/blob/master/src/ladybug_ladybug.py#L1965" target="_blank">https://github.com/mostaphaRoudsari/ladybug/blob/master/src/ladybug_ladybug.py#L1965</a></p>
<p></p>
<p>So I can check this key and make sure ladybug is flying, otherwise I will ask the user to let it fly!</p>
<p></p>
<div class="line" id="LC35"> <blockquote><span class="k">if</span> <span class="n">sc</span><span class="o">.</span><span class="n">sticky</span><span class="o">.</span><span class="n">has_key</span><span class="p">(</span><span class="s">'ladybug_release'</span><span class="p">):</span></blockquote>
</div>
<blockquote><div class="line" id="LC36"> <span class="n">lb_preparation</span> <span class="o">=</span> <span class="n">sc</span><span class="o">.</span><span class="n">sticky</span><span class="p">[</span><span class="s">"ladybug_Preparation"</span><span class="p">]()</span></div>
<div class="line" id="LC37"> </div>
<div class="line" id="LC38"> <span class="k">else</span><span class="p">:</span></div>
<div class="line" id="LC39"> <span class="k">print</span> <span class="s">"You should first let the Ladybug fly..."</span></div>
<div class="line" id="LC40"> <span class="n">w</span> <span class="o">=</span> <span class="n">gh</span><span class="o">.</span><span class="n">GH_RuntimeMessageLevel</span><span class="o">.</span><span class="n">Warning</span></div>
<div class="line" id="LC41"> <span class="n">ghenv</span><span class="o">.</span><span class="n">Component</span><span class="o">.</span><span class="n">AddRuntimeMessage</span><span class="p">(</span><span class="n">w</span><span class="p">,</span> <span class="s">"You should first let the Ladybug fly..."</span><span class="p">)</span></div>
<div class="line" id="LC42"> <span class="k">return</span> <span class="o">-</span><span class="mi">1</span></div>
<div class="line"></div>
</blockquote>
<p><a href="https://github.com/mostaphaRoudsari/ladybug/blob/master/src/Ladybug_North.py#L35" target="_blank">https://github.com/mostaphaRoudsari/ladybug/blob/master/src/Ladybug_North.py#L35</a></p>
<p></p>
<p>The order of execution is not really straight forward. Check this discussion: (<a href="http://www.grasshopper3d.com/forum/topics/order-of-execution-for-unconnected-components" target="_blank">http://www.grasshopper3d.com/forum/topics/order-of-execution-for-unconnected-components</a>). I assume there should be a solution to the ctrl+B from the code inside the component.</p> Hi Marcus
I would say this is…tag:www.grasshopper3d.com,2014-02-13:2985220:Comment:10085752014-02-13T11:19:23.362ZGiulio Piacentinohttps://www.grasshopper3d.com/profile/GiulioPiacentino
<p>Hi Marcus</p>
<p>I would say this is as official as, generally, third-party libraries are. Not everything that is possible should generally be done. In fact, if you can avoid this, I would suggest to do so. There are reasons why this is interesting, though, and other reasons why this should be avoided.</p>
<p>The main reason for this, is a Grasshopper-only way to distribute "libraries". The main disadvantage I see is user confusion. What Mostapha is doing is interesting and has a meaning,…</p>
<p>Hi Marcus</p>
<p>I would say this is as official as, generally, third-party libraries are. Not everything that is possible should generally be done. In fact, if you can avoid this, I would suggest to do so. There are reasons why this is interesting, though, and other reasons why this should be avoided.</p>
<p>The main reason for this, is a Grasshopper-only way to distribute "libraries". The main disadvantage I see is user confusion. What Mostapha is doing is interesting and has a meaning, but you should not count on the fact that users will always add this "parent" component first, so you should at least find a way to let them know that they need the additional component. Secondly, there is no way in Grasshopper to officially tell "first compute that lonely component", but my understanding is that Grasshopper will probably keep on solving in the order it is solving now.</p>
<p>I hope this helps,</p>
<p>Giulio</p>
<p>--</p>
<p>Giulio Piacentino<br/>for Robert McNeel & Associates<br/>giulio@mcneel.com</p> I use it all over the place f…tag:www.grasshopper3d.com,2014-02-12:2985220:Comment:10083652014-02-12T22:35:02.919ZMostapha Sadeghipour Roudsarihttps://www.grasshopper3d.com/profile/MostaphaSadeghipour
<p>I use it all over the place for Ladybug and Honeybee to share the functions and classes. I don't know if it is "official & suggested way in Grasshopper". I would only make sure to select a unique name for the key not to overwrite what someone else already put there!</p>
<p>I use it all over the place for Ladybug and Honeybee to share the functions and classes. I don't know if it is "official & suggested way in Grasshopper". I would only make sure to select a unique name for the key not to overwrite what someone else already put there!</p>