This may have been asked before, but I cannot make sense of it. I need a script which simply toggles the eye of my collection named "Animation". I have enabled my viewport by using bpy.data.collections["Animation"].hide_viewport = False The eye however is closed and I need to open it with a script. Any help is appreciated.
Hi Blender coders and artists.  I am updating one of my add-ons for Blender 2.8 and have run into some  issues finding the appropriate way to hide a collection that is added to my scene.  I want to deselect the eyeball on the toolbar with a python command in a script but I don't want to disable the collection in the view-port entirely as it is used as a collection in a particle system.   I just want to deselect the eyeball circled in green below.  Anyone know the python API for this?
Can some metadata about deleted posts be included in Data.SE? Why do people buy stocks that pay no dividend? Before recently, Apple Inc. did not give dividend to shareholders.  This makes me curious why people buy Apple Inc. stocks; while it might be due to the expectation of selling stocks at a higher price, this can only be possible if other people are thinking the same, thereby increasing demand. But the stocks themselves do not pay interests - so Apple's amazing revenue/profit records would not matter.... How do I get the raw representation of a string in Python? A question about the idea of Laplace transform In Laplace integral transform equation one multiplies the function $f(t)$ by $e^{-st}$. I read in many tutorials that $e^{-st}$ decays much faster than any other function so the integral diverges.  But what I don't understand what makes one to think to multiply a function with  $e^{-st}$ to transform it in $s$ domain? What is the motivation behind it? Why would you suddenly come up with an idea as such: "Oh there is a function $f(t)$ in time domain what can I do to transform it to complex freq. ($s$) domain? Hmm let me multiply it with $e^{-st}$ and integrate it from zero to infinity" What would have motivated this idea of multiplying and integrating for transformation? Proof by induction that $2 + 4 + 6 + \cdots + 2n = n(n+1)$ Lets say I have a function defined as $f(x) = \sqrt {x^2}$. Common knowledge of square roots tells you to simplify to $f(x) = x$ (we'll call that $g(x)$) which may be the same problem, but it isn't the same equation. For example, say I put $-1$ into them:  $\begin{align} f(x) &amp;= \sqrt {x^2} \\ f(-1) &amp;= \sqrt {(-1)^2} \\ f(-1) &amp;= \sqrt {1} \\ f(-1) &amp;= 1 \end{align}$  $\begin{align} g(x) &amp;= x \\ g(-1) &amp;= -1 \end{align}$  thereby, we conclude that $f(x)$ and $g(x)$ do not produce the same results even though they are mathematically the same. This is also shown when we try to graph the functions:  :    :    :    From this, we can see that given $f(x) = \sqrt {x^2}$, when simplified is not the same as $f(x) = x$. So, is there any way to prove that $y = \sqrt {x^2}$ is not the same as $y = x$ for negative values, but is infact the same as $y = \mid x \mid$? Determine the number of lines within a text file Is there an easy way to programmatically determine the number of lines within a text file? did + present tense (or ) Past tense of the verb What did you say?   What you said.         How did you and mum guess I wanted Agnes?   how you and Mum guessed I wanted Agnes   What is the meaning of above two sentences? When should I use "did + present tense" and the past tense of a verb? I already have a 6 month valid UK business visa received prior to April 24 2015. I was supposed to travel to the UK in April, but my trip was cancelled on medical grounds.  I am now planning to visit the UK in July for tourism. Would it be fine for me to do so? Will I be allowed to enter the UK? Should I carry the original invite letter and medical certificate to prove why I didn't go the first time? How to describe arbitrary accelerations in special relativity I gave a quick answer to part of  which had not been covered by previous answers, trying to clarify the reason you would say time of decoding but not decoding’s time. I said it was ’s usually indicates possession, but of course there were several counterexamples that would have occurred to me after a moment’s consideration, and these where helpfully supplied:   Britain’s climate two days’ time  a day’s work  the sun’s rays   I am still of a mind to say that possession of some sort is what allows the ’s. Even though the sun does not have title to its rays, they do belong to the sun. Now, at the risk of duplicating the original question and/or being pigheaded, I am curious as to why time of decoding but not decoding’s time is correct, if not for the reason I gave. What is the Physical Meaning of Commutation of Two Operators? I understand the mathematics of commutation relations and anti-commutation relations, but what does it physically mean for an observable (self-adjoint operator) to commute with another observable (self-adjoint operator) in quantum mechanics?   E.g. an operator $A$ with the Hamiltonian $H$? Is there any benefit of creating model in one piece or I can create separate pieces and just overlap them to create a visually joint part.  For example, the below image were made from two parts 1. Blade 2. Spinner  Is there any benefit to model them (e.g. extrude from the spinner) or it is actually ok to have them separated since visually I can achieve the same effect (See picture 2) Decode JWT Token in Apex I am trying decode JWT token in apex, and i am not sure how that can be done. If anyone has done that before, please let me know the process.  A JWT token is sent to SFDC and need to decode it in apex class.  Questions: 1) Can we decode the JWT using any standard salesforce classes, if yes what class and method? 2) Or do we need to decode it with our custom code -- if so can you provide an example. in a mountain climbing expeditions 5 men and 7 women are to walk in a mountain climbing expeditions 5 men and 7 women are to walk single file so that no 2 men are adjacent. How many ways are possible? After logging in on terminal with user name and password, how do I start the GUI? Pop up option are not popping up after snipping the area "The only thing necessary for the triumph of evil is for good men to do nothing." -Edmund Burke  Is there an idiom, phrase or preferably a single word that we can call people that could have helped but didn't? Bystanders don't necessarily have help to give. Cowards aren't particularly helpful either.    Addendum:  For example, once EMS has arrived on scene, bystanders are encouraged not to try to help, unless they're a nurse and therefore have the necessary skills to, and sometimes even then so. If in The Service, I would not want a coward (a liability) next me holding the line. Not to take anything away from these great answers, or to insist on a non-militaristic point of view, I would like to veer into the commercial or civilian realm in which I find this quote most often alluded to, E.G., "If we all gave 5 cents we could cure cancer tomorrow." Pretend most of us did give 5 cents and we did cure cancer, but you didn't give. You are now a(n) ____?... yes, I know what we call them, but what is their proper designation? Include reviews made outside of /review in progress towards the badge The recent changes to /review has gotten everyone interested in cleaning up the muck. At present, only posts "reviewed" (by clicking on the review link) and actions taken (up/down/close/edit/flag) from within /review count towards the badge.   However, it is entirely possible that one catches a poor question outside of /review (e.g., on the front page/tag page, etc.) and "reviews" it and takes some action on it. However, these actions do not count for the badge, at present. In all likelihood, this question would've also been in the /review queue and if one were fortuitous enough to have reviewed it there, these actions would've counted towards the badge.   Would it be possible to include reviews made outside of /review to count if the question was also in the review queue? Note that this shouldn't apply if the question dropped out of the queue (either by inaction or after it was edited and improved by previous reviews). Brackets in if condition: why am I getting syntax errors without whitespace? I am using the below script to move two days back when script runs at starting two days of the year and also check first and second days of every month and move two days back. if [$month=&quot;01&quot;] &amp;&amp; [$day=&quot;01&quot;]; then         date=&quot;$last_month/$yes_day/$last_year&quot;         fulldate=&quot;$last_month/$yes_day/$last_year&quot; else         if [$month=&quot;01&quot;] &amp;&amp; [$day=&quot;02&quot;]; then                 date=&quot;$last_month/$yes_day/$last_year&quot;                 fulldate=&quot;$last_month/$yes_day/$last_year&quot;         else                 if [ $day = &quot;01&quot; ]; then                         date=&quot;$last_month/$yes_day/$year&quot;                         fulldate=&quot;$year$last_month$yes_day&quot;                 else                         if [ $day = &quot;02&quot; ]; then                                 date=&quot;$last_month/$yes_day/$year&quot;                                 fulldate=&quot;$year$last_month$yes_day&quot;                         else                                 date=&quot;$month/$yes_day/$year&quot;                                 fulldate=&quot;$year$month$yes_day&quot;                         fi                 fi         fi fi  But my bad am getting the below error message Etime_script.sh: line 19: [06=01]: command not found Etime_script.sh: line 24: [06=01]: command not found