I have Created a Material and Added Some Nodes using Python Script. Now I wan't To Add Some Nodes To Compositor using Python How to do that ? Can anyone tell that directly or Should I share the Code Which I wrote Earlier to create a Material and adding some diffuse and glossy nodes.
I've been looking at the python code loging of Blender. But in there things get loged as mouse clicks.  What i like to do is combine a few images into a larger one using compositor, but i need control over compositor by python script. The problem seams to me that it is a bit hard to "spawn" a few nodes, set their values and connect them.  I need an micture of:  image, scale, source image location, mix nodes, output nodes  I have no Code samples other then the log of blender python which in this case is of no big help.
Random quadratic equation I would like to produce quadratic equation with integer coefficients.  Here's my code using pgfmath.  \documentclass{article} \usepackage{tikz} \pgfmathsetseed{\pdfuniformdeviate 10000000}  \begin{document} $\pgfmathdeclarerandomlist{signe}{{+}{-}}% \pgfmathrandomitem{\s}{signe}% \pgfmathparse{random(2)}% \pgfmathparse{ifthenelse(\pgfmathresult==1,"-"," ")}\pgfmathresult \pgfmathrandominteger{\a}{1}{6} \pgfmathparse{ifthenelse(\a==1," x^{2} ","\a x^{2}")}\pgfmathresult % coeff a \pgfmathdeclarerandomlist{lincoeff}{{}{2}{3}{4}{5}{6}} \pgfmathrandomitem{\b}{lincoeff}% \pgfmathrandomitem{\s'}{signe}% \pgfmathsetmacro{\e}{random(0,6)} \pgfmathparse{ifthenelse(\e==0," ", " \s' \b x ")}\pgfmathresult % coeff b \pgfmathrandominteger{\c}{0}{6} \pgfmathrandomitem{\s''}{signe}% \pgfmathparse{ifthenelse(\c==0,"","\s'' \c")}\pgfmathresult % coeff c =0$ \end{document}   It works but it seems to be not a good way, I had some pain with the x-coeficient and my solution looks complicated. I tried to use an ifthenelse inside an other ifthenelse but without success. Is there a better way ? Can prematurely powering down a computer cause bad sectors in a hard drive? Q1: Can forcibly powering off a PC without using the built-in shutdown/reboot functions, cause a HDD to accumulate bad sectors? Whether it be the result of BSODs, lockups, crashes, etc.   Q2: If so, are these bad sectors repairable? I know an OS typically relocate bad sectors to other areas of the drive, but once a drive accumulates too many it just dies.   I have read up and saw things about 'soft' and 'hard' bad sectors. One caused by software and the other being actual physical damage. The reason I am asking this is because I have had several HDDs die on me in the past year, far before their estimated lifespan, and one thing they all had in common was that I had forcibly powered off my PC a lot. What is the easiest way to export just the selected objects in Illustrator? The title says it all, I want to know what the simplest way to export the selected objects.  In Inkscape, there is a menu option called export selected which does just this.    The aforementioned option lets you export the selection as a composite image or as a batch of individual images.  Both would be nice, but in this scenario I want to export the selected objects as a single image.  I can already create a new document, and paste in the selected items.  I am looking for a way that is easier than this.  How can I save / output / export only the objects I currently have selected, to an image file, in Adobe Illustrator CS5? Subgroups of $U(n)$ isomorphic to a direct sum of cyclic groups How does the referral system work? I don't understand how the referral program works even after reading everything about it. Do I only get the 500 CC if the referred person subscribes within 14 days, or if I just refer the person? And do I get 500 CC for every month that referred person subscribes, or is it just one time? R cannot be resolved - Android error Can X.org Load Two Different Drivers? (Triple-Head Setup with Intel and NVidia Card) We want to set up a 3 screens with an onboard intel graphics adapter and an nvidia card.  Both cards are recognized in lspci   01:00.0 VGA compatible controller: NVIDIA Corporation GT218 [GeForce 210] (rev a2) 00:02.0 Display controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)   And bascially work: If I switch to the console, I see output on the Intel card, X is only running on the Nvidia card.  But when I type xrandr | grep conn I get only one connected port:   DVI-I-0 disconnected (normal left inverted right x axis y axis) VGA-0 disconnected (normal left inverted right x axis y axis) DVI-I-1 connected 1920x1200+0+0 (normal left inverted right x axis y axis) 518mm x 324mm HDMI-0 disconnected (normal left inverted right x axis y axis)   I am on Ubuntu 12.10 (and XFCE) and installed the proprietary nvidia driver.  I was assuming that X maybe has a problem to autodetect both cards, so I thought the following xorg.conf could help:   Section "ServerLayout"     Identifier     "Layout0"     Screen      0  "Screen0"     Screen      1  "Screen1"     InputDevice    "Keyboard0" "CoreKeyboard"     InputDevice    "Mouse0" "CorePointer" EndSection  Section "Files" EndSection  Section "InputDevice"     # generated from default     Identifier     "Mouse0"     Driver         "mouse"     Option         "Protocol" "auto"     Option         "Device" "/dev/psaux"     Option         "Emulate3Buttons" "no"     Option         "ZAxisMapping" "4 5" EndSection  Section "InputDevice"     # generated from default     Identifier     "Keyboard0"     Driver         "kbd" EndSection  Section "Monitor"     Identifier     "Monitor0"     VendorName     "Unknown"     ModelName      "Unknown"     HorizSync       28.0 - 33.0     VertRefresh     43.0 - 72.0     Option         "DPMS" EndSection  Section "Device"     Identifier     "Device0"     Driver         "nvidia"     VendorName     "NVIDIA Corporation"     BoardName      "GeForce 210" EndSection  Section "Screen"     Identifier     "Screen0"     Device         "Device0"     Monitor        "Monitor0"     DefaultDepth    24     SubSection     "Display"         Depth       24     EndSubSection EndSection   Section "Monitor"     Identifier     "Monitor1"     VendorName     "Unknown"     ModelName      "Unknown"     HorizSync       28.0 - 33.0     VertRefresh     43.0 - 72.0     Option         "DPMS" EndSection  Section "Device"     Identifier     "Device1"     Driver         "intel"     VendorName     "Intel"     BoardName      "Internal Intel Graphics" EndSection  Section "Screen"     Identifier     "Screen1"     Device         "Device1"     Monitor        "Monitor1"     DefaultDepth    24     SubSection     "Display"         Depth       24     EndSubSection EndSection   But it is still not working.   Is this generally possible to use two different drivers in X ? Is it necessary to create an xorg.conf manually then? (because Ubuntu 12.10 normally works without the xorg.conf) Are there any errors in my xorg.conf? Using a 'corporate author' in the "author" field of a bibliographic entry (spelling out the name in full) I want to list a company name in the author field of a bibliographic entry:  @book{CUDA,   author    = {NVIDIA Corporation},   title     = {NVIDIA CUDA Compute Unified Device Architecture Programming Guide},   publisher = {NVIDIA Corporation},   year      = {2007} }   But the entry keeps showing up "N. Corporation".  Is there a way to get the full author name to show up?  I'm currently using the siam BibTEX style. I have a few questions regarding CAN bus load  Is there any derived equation/formula to calculate the bus load?  I need transmit below frames(Assume Standard frame format) at baud rate 500 kbps on the bus 5ms  ----- 50 frames. 10ms ----- 10 frames. 100ms ---- 30 frmaes. Event messages ---- 10 frames.   How to calculate bus load, does anyone knows kindly illustrate the same?  What is the maximum bus load on CAN bus? What is an "index out of range" exception, and how do I fix it? How to Avoid Precision Errors While Creating Numpy Arrays? I know that Dirichlet function has uncountable many discontinuities. I think they are removable, because the discontinuities can be removed by redefining the function values of the rational numbers as 0.  So Dirichlet function is a function that has uncountable many removable discontinuities, then my question is can we construct a function with uncountable  many jump discontinuities? If not, how do we prove it is impossible? Thank you.  An odd but similar question is can we have a function that has uncountable many infinite discontinuities? Question I use pgfplots with the ultra thick option ans without explicitly giving the domain for the y-axis. It seems that in this case, some part of my graph is &quot;eaten&quot; by the margin: see the picture below to understand what I mean. Is there a way to avoid this? Code \documentclass{article} \usepackage{pgfplots} \begin{document}  \begin{tikzpicture}  \pgfplotsset{every axis/.append style={                     axis x line=middle,    % put the x axis in the middle                     axis y line=middle,    % put the y axis in the middle                     axis line style={-&gt;},  % arrows on the axis                     xlabel={$x$},          % default put x on x-axis                     ylabel={$y$},          % default put y on y-axis                     grid = major                     }}  \begin{axis}[xmin=-5,xmax=5] \addplot[orange,smooth, ultra thick] {sin(deg(x))} ;                  \end{axis} \end{tikzpicture}  \end{document} Prove: If $a$ and $b$ are odd integers, then $8\mid (a^2-b^2)$  So far I have: $$8\mid \left((2n+1)^2-(2m+1)^2\right)\Longleftrightarrow 8\mid \left(4n^2+4n+1-4m^2-4m-1\right) $$ Is this right so far? Where do I go from here? Step by step explanation please! Division by $0$ I came up some definitions I have sort of difficulty to distinguish. In parentheses are my questions.   $\dfrac {x}{0}$ is Impossible (  If it's impossible it can't have neither infinite solutions or even one. Nevertheless, both $1.$ and $2.$ are divided by zero, but only $2. $ has infinite solutions so as $1.$ has none solution, how and why ?) $\dfrac {0}{0}$ is Undefined and has infinite solutions. (How come one be Undefined and yet has infinite solutions ?) $\dfrac {0}{x}$ and $x \ne 0$, it's okay for me, no problem, but if someone else wants to add something about it, feel free to do it. Quadrilateral problem with midpoints of diagonals For an arbitrary convex quadrialteral $ABCD$:   $$AF=FC, BE=ED, GI=IH$$  Prove that points $F$, $E$ and $I$ are collinear.  I was able to solve the problem by using vectors and I think that it can be also solved analytically but I wanted some more elegant proof, more in the spirit of Euclid. Escape Key in the Chat Trying to overwrite ... which is different from other instances of package I tried to upgrade Intel graphics in ubuntu 16.10 using the official installer. The last stage of unpacking libcairo2 produces an error (see figure).  When I do upgrade I get the same error also:   Preparing to unpack .../0-libcairo2_1.15.2-0intel1_amd64.deb ... Unpacking libcairo2:amd64 (1.15.2-0intel1) over (1.15.2-0intel1) ... dpkg: error processing archive /tmp/apt-dpkg-install-aYhdFd/0 libcairo2_1.15.2-0intel1_amd64.deb (--unpack): trying to overwrite shared '/usr/share/doc/libcairo2/changelog.Debian.gz', which is different from other instances of package libcairo2:amd64 Preparing to unpack .../1-libcairo2_1.15.2-0intel1_i386.deb ... Unpacking libcairo2:i386 (1.15.2-0intel1) over (1.15.2-0intel1) ... dpkg: error processing archive /tmp/apt-dpkg-install-aYhdFd/1-libcairo2_1.15.2-0intel1_i386.deb (--unpack): trying to overwrite shared '/usr/share/doc/libcairo2/changelog.Debian.gz', which is different from other instances of package libcairo2:i386 Errors were encountered while processing: /tmp/apt-dpkg-install-aYhdFd/0-libcairo2_1.15.2-0intel1_amd64.deb /tmp/apt-dpkg-install-aYhdFd/1-libcairo2_1.15.2-0intel1_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1)   It seems that there is a conflict in thelibcairo releases; if yes, how to resolve it ? Evaluate $$\sum\limits_{k=1}^{n} \frac{k}{2^k}$$ What is CTAN.org now?