loops in gh.python - Grasshopper2024-03-28T17:24:46Zhttps://www.grasshopper3d.com/forum/topics/loops-in-gh-python?commentId=2985220%3AComment%3A1714733&feed=yes&xn_auth=noIt seems that you are a novic…tag:www.grasshopper3d.com,2017-03-19:2985220:Comment:17156572017-03-19T15:06:25.001Z王仕兵https://www.grasshopper3d.com/profile/wangshibing
<p>It seems that you are a novice like me, ha ha ha ha</p>
<p>It seems that you are a novice like me, ha ha ha ha</p> The control of loop is "i<…tag:www.grasshopper3d.com,2017-03-19:2985220:Comment:17157132017-03-19T04:22:39.145Z0ddw589ypu3jvhttps://www.grasshopper3d.com/xn/detail/u_0ddw589ypu3jv
<p>The control of loop is "i<len(data)",You can replace it with anything you want.</p>
<p>The control of loop is "i<len(data)",You can replace it with anything you want.</p> oh this is really cool,I wish…tag:www.grasshopper3d.com,2017-03-18:2985220:Comment:17152412017-03-18T16:08:19.368ZNazanin Tabatabaeihttps://www.grasshopper3d.com/profile/NazaninAlsadatTabatabaeianara
<p>oh this is really cool,I wish it could stop for the user to say ok,everytime that it would run the loop though.</p>
<p>oh this is really cool,I wish it could stop for the user to say ok,everytime that it would run the loop though.</p> I appologize, I did not now t…tag:www.grasshopper3d.com,2017-03-18:2985220:Comment:17153402017-03-18T15:46:51.352ZNazanin Tabatabaeihttps://www.grasshopper3d.com/profile/NazaninAlsadatTabatabaeianara
<p>I appologize, I did not now that these forums are related and the same people run them. I was trying to get as much feedback as possible. I keep that in mind.thank you for the suggestions</p>
<p>I appologize, I did not now that these forums are related and the same people run them. I was trying to get as much feedback as possible. I keep that in mind.thank you for the suggestions</p> Is that what you want?
tag:www.grasshopper3d.com,2017-03-18:2985220:Comment:17149532017-03-18T01:18:31.846Z0ddw589ypu3jvhttps://www.grasshopper3d.com/xn/detail/u_0ddw589ypu3jv
<p>Is that what you want?</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769261611?profile=original" target="_self"><img width="384" class="align-full" src="http://storage.ning.com/topology/rest/1.0/file/get/2769261611?profile=original"/></a></p>
<p>Is that what you want?</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769261611?profile=original" target="_self"><img width="384" class="align-full" src="http://storage.ning.com/topology/rest/1.0/file/get/2769261611?profile=original"/></a></p> This has a parallel discussio…tag:www.grasshopper3d.com,2017-03-17:2985220:Comment:17149172017-03-17T22:13:09.791ZGiulio Piacentinohttps://www.grasshopper3d.com/profile/GiulioPiacentino
<p>This has a parallel discussion on <a href="https://discourse.mcneel.com/t/loops-in-ghpython/42256/5" target="_blank">https://discourse.mcneel.com/t/loops-in-ghpython/42256/5</a></p>
<p>Please, Nazanin, refrain from contemporarily emailing me, and cross posting the same discussion on all forums. If you have to, please at least post a link.</p>
<p>This has a parallel discussion on <a href="https://discourse.mcneel.com/t/loops-in-ghpython/42256/5" target="_blank">https://discourse.mcneel.com/t/loops-in-ghpython/42256/5</a></p>
<p>Please, Nazanin, refrain from contemporarily emailing me, and cross posting the same discussion on all forums. If you have to, please at least post a link.</p> thanks for the reply,so far I…tag:www.grasshopper3d.com,2017-03-17:2985220:Comment:17147332017-03-17T18:10:43.727ZNazanin Tabatabaeihttps://www.grasshopper3d.com/profile/NazaninAlsadatTabatabaeianara
<p>thanks for the reply,so far I am concluding that it's not possible either:(</p>
<p>thanks for the reply,so far I am concluding that it's not possible either:(</p> can you explain more?
apparen…tag:www.grasshopper3d.com,2017-03-17:2985220:Comment:17145702017-03-17T18:10:01.843ZNazanin Tabatabaeihttps://www.grasshopper3d.com/profile/NazaninAlsadatTabatabaeianara
<p>can you explain more?</p>
<p>apparently I shouldnt use the rhino command line with grasshopper,but is there any other way to write the code in a way to wait for an input each time it runs the loop(and also give me an output each time it runs it).</p>
<p><span>if I just get for example a number slider and connect it to my python component,it doesnt wait for me to change the parameter for each time it runs the loop(which in this case can cause into a crash)</span></p>
<p>can you explain more?</p>
<p>apparently I shouldnt use the rhino command line with grasshopper,but is there any other way to write the code in a way to wait for an input each time it runs the loop(and also give me an output each time it runs it).</p>
<p><span>if I just get for example a number slider and connect it to my python component,it doesnt wait for me to change the parameter for each time it runs the loop(which in this case can cause into a crash)</span></p> hmmm,I want it to wait for my…tag:www.grasshopper3d.com,2017-03-17:2985220:Comment:17145662017-03-17T18:08:04.009ZNazanin Tabatabaeihttps://www.grasshopper3d.com/profile/NazaninAlsadatTabatabaeianara
<p>hmmm,I want it to wait for my input each time,however if I just get for example a number slider and connect it to my python component,it doesnt wait for me to change the parameter for each time it runs the loop(which in this case can cause into a crash)</p>
<p>hmmm,I want it to wait for my input each time,however if I just get for example a number slider and connect it to my python component,it doesnt wait for me to change the parameter for each time it runs the loop(which in this case can cause into a crash)</p> You can't use rs.GetString()…tag:www.grasshopper3d.com,2017-03-16:2985220:Comment:17134892017-03-16T07:48:27.641ZAnders Holden Deleuranhttps://www.grasshopper3d.com/profile/AndersHoldenDeleuran
<p>You can't use <em>rs.GetString()</em> within the scope of the GHPython component, functions like these are developed for operating in the Rhino document or interface (or, you can, but you shouldn't have to). Instead, simply pass your string as an input parameter on your GHPython component.</p>
<p>You can't use <em>rs.GetString()</em> within the scope of the GHPython component, functions like these are developed for operating in the Rhino document or interface (or, you can, but you shouldn't have to). Instead, simply pass your string as an input parameter on your GHPython component.</p>