I'm new to blender scripting so don't judge me If my question is stupid. I'm trying to make a script for blender 2.79 or 2.83 doesn't matter. The whole idea that I want to make a script for is that I want to have access to all uv vertices and their related vertex in the 3d view. To be exact, I want to get and set the location of each uv vertex and it's 3d view vertex. How can I get access to it and How can I set them to a different value? Thank you in advance!
How do I get a selected vertex and it's corresponding uv vertex?  A vertex I can get with  bpy.context.active_object.data.vertices[0]   A uv vertex I can get with  bpy.context.active_object.data.uv_layers['UVMap'].data[0]   But the index is not the same for uv and mesh vertex.
Showing that two definitions of $\limsup$ are equivalent Why does printf() not print anything before sleep()? Should I keep my swap file on an SSD drive? I'm considering getting an SSD drive to run as the primary OS partition.  As I understand, this should provide a substantial improvement in performance.     My question is this: Should I leave the swap file on that drive?     The swap partition will be largely random seeks and so should benefit from the speed.  On the other hand, it will be constantly written to which will wear out the drive faster. What will happen with Blender 2.8 game engine? Blender has just purged the entire game engine from 2.8. There is no "Game Engine" mode anymore and there isn't even a logic editor. I tried installing a GitHub Blender release with the game engine mode working but it failed to install because all the game code was gutted. Does this mean that Blender 2.8 is going to lose the game engine, or is the game engine just being redone for better compatibility and whatnot? When asking a new question and typing in the title we get a list of similar questions named     Questions that may already have your answer     That suggestions contains posts across all tags. Like the example in the screenshot it returns similar questions for Python, jQuery, SQL, C#, Java, C++, ...  This makes the list less useless unlikely people find a question that already answers theirs. If people actually find a similar question in that list many duplicates could be avoided.  So can tags I entered below the question be considered to update the list? And can the tag textbox maybe put above the question title? I'm running Bash scripting, but sometimes I get confused which of these commands I use belong to who. Sometimes man xxx works, sometimes doesn't, so I use --help or info, mostly one of these works to show description of the command. Can anyone tell me how I would know what command belongs to what? Bash builtin, GNU utility, etc. Let $G$ be a finite semi-group with identity such that it has only one idempotent.Is $G$ a group?  It only remains to show that for any $a\in G$ $\exists b\in G$ such that $ab=ba=e$ where $e$ is the identity of $G$  Also $e$ is the only idempotent of $G$ .How to proceed next? I dug a large room to specifications, 3 blocks tall and 16 blocks wide as well as long. I dug it at 10 levels above bedrock, in a location {(-240, 0) -> (-224, 16)} specified by  slime finder app. I am definitely more than 24 blocks away and less than 32 away from the spawn room, as specified by the wiki .  Yet, no slimes. I have been sitting in my location patiently listening for the moist slapping sounds of slime. I have gone in to the room every time I heard a phantom slap but still nothing.  Am I just being dumb somehow or do the minecraft lords just hate me?  If it helps/anyone cares here's my seed: 6405460532872068998 In Java, arrays don't override toString(), so if you try to print one directly, you get the className + '@' + the hex of the  of the array, as defined by Object.toString():  int[] intArray = new int[] {1, 2, 3, 4, 5}; System.out.println(intArray);     // prints something like '[I@3343c8b3'   But usually, we'd actually want something more like [1, 2, 3, 4, 5]. What's the simplest way of doing that? Here are some example inputs and outputs:  // Array of primitives: int[] intArray = new int[] {1, 2, 3, 4, 5}; //output: [1, 2, 3, 4, 5]  // Array of object references: String[] strArray = new String[] {"John", "Mary", "Bob"}; //output: [John, Mary, Bob] What techniques have been used to repeat geometry or other detail to the infinite horizon? When I composed my     I would have liked to have the camera pitch up enough to show the horizon, except I didn't have enough geometry to extend the cobblestone street and the sidewalk all the way to infinity (mostly because that would require infinite stuff).  Even in that shot it is clear that I need to widen the "sidewalk" to cover up the "sky"box.    Contrast with     where the ray tracer can use the procedurally replicated geometry.   is a failed attempt at faking out the horizon, even with low detail.  It fails because lighting's interaction with the geometry gives it away.  Some techniques that prevent you from having to deal with infinity include   put the scene in a box (usually a room) put the scene in a canyon (which is just a box without a top so you can see the relatively featureless sky) route the road into a tunnel, or around a corner and hide the horizon with other geometry (which is really just a variant on the canyon). have no detail on the ground at all (flat color or gradient)   Those are all dodging the question of interest to me:  What techniques have people used in blender to fake various kinds of detail repeating into the distance (instead of just obstructing the view of infinity)? Evaluate the integral $$\int^{\frac{\pi}{2}}_0 \frac{\sin^3x}{\sin^3x+\cos^3x}\, \mathrm dx.$$  How can i evaluate this one? Didn't find any clever substitute and integration by parts doesn't lead anywhere (I think).  Any guidelines please? How to clear Chocolatey cache in the free version? Installation-file-cleaning is currently only available in  () and .  The package installation files can easily take gigabytes of storage space and to my knowledge they only increase in size as the user updates packages and installs new software, with only your hard drive capacity as the upper limit.   I don't know if Chocolatey stores cache in one central location — something is saved to ~\AppData\Local\Temp but the majority is located in the lib* folders in ~\ProgramData\chocolatey. Also the log files in the logs folder total to over 100 MB on my system. Is there any way to fully clear Chocolatey cache without manually deleting directories? What is the ideal data type to use when storing latitude / longitude in a MySQL database? Bearing in mind that I'll be performing calculations on lat / long pairs, what datatype is best suited for use with a MySQL database? form in a .tpl.php file This is the code in my template.php file.  function studiga_theme_theme($existing, $type, $theme, $path) {         $items['add_property_form'] = array(         'render element' =&gt; 'form',         'template' =&gt; 'node--14',         'path' =&gt; drupal_get_path('theme', 'studiga_theme') . '/templates/node',     );      return $items; }    function custom_add_property_form($form, &amp;$form_state) {     $form['first_name'] = array(         '#type' =&gt; 'textfield',         '#attributes' =&gt; array('placeholder' =&gt; t('First name')),     );     $form['last_name'] = array(         '#type' =&gt; 'textfield',         '#attributes' =&gt; array('placeholder' =&gt; t('Last name')),     );     $form['address'] = array(         '#type' =&gt; 'textfield',         '#attributes' =&gt; array('placeholder' =&gt; t('Address')),     );     $form['city'] = array(         '#type' =&gt; 'textfield',         '#attributes' =&gt; array('placeholder' =&gt; t('City')),     );     $form['state'] = array(         '#type' =&gt; 'select',         '#options' =&gt; array(             'default' =&gt; 'State',             '...' =&gt; '...',         ),     );     $form['zip'] = array(         '#type' =&gt; 'textfield',         '#attributes' =&gt; array('placeholder' =&gt; t('Zip')),     );     $form['email'] = array(         '#type' =&gt; 'textfield',         '#attributes' =&gt; array('placeholder' =&gt; t('Email')),     );     $form['phone'] = array(         '#type' =&gt; 'textfield',         '#attributes' =&gt; array('placeholder' =&gt; t('Phone')),     );     $form['submit'] = array(         '#type' =&gt; 'submit',         '#value' =&gt; 'Submit',     );      return $form; }   This is the code in node--14.tpl.php.                                          Contact Information                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  &lt;div class="row"&gt;     &lt;div class="small-12 medium-12 large-8 large-offset-2 columns"&gt;         &lt;?php print render($form['submit']); ?&gt;     &lt;/div&gt; &lt;/div&gt;     But no fields are appearing - what am I doing wrong? You can't have a straight forward  in a tpl.php file can you? Is it possible to copy the whole rows of File1 in a new File3 following the instruction given by File2 by using a simple bash script using sed or awk?  File1: /*two or more columns*/ AC    456324 DC    689712 GH    123677 KL    236587  File2: /*one column*/ AC DC  File3:  AC    456324 DC    689712   I'm actually performing this using Python dictionaries and I wondered if you knew a simple way out. Dark Souls 2 coop/invading problem I was playing Dark Souls II on my pc a lot. After about 200 hours of ingame time I found that I cant summon or invade anybody. I tried new characters and reinstalling but it didn't help. So any tips, and reasons. P.S. I didn't used any cheats. Is it safe to delete from C:\Windows\Installer? How to redirect apache /var/www to the home directory and access all the directories and files in my home directory? I have installed Apache(LAMP) web server on my ubuntu machine and I want to do the above mentioned thing.I have tried creating symbolic links in the /var/www directory but it only shows files but not directories inside the directory linked.I want to redirect /var/www to my home folder so that I can access all the files and directories contained therein.Please help me. I am having trouble getting a basic example of a matrix of notes to show up in my beamer presentation. I am using the code copied from the pgf manual. Here is a complete working example. The error I get upon compilation is:  "Package pgfbasematrix Error: Single ampersand used with wrong catcode."  \documentclass{beamer} \usepackage{tikz} \usetikzlibrary{arrows,decorations.pathmorphing,backgrounds,fit,petri,positioning,matrix}  \begin{document}  \begin{frame}  \begin{tikzpicture} \matrix (magic) [matrix of nodes] { 8 &amp; 1 &amp; 6 \\ 3 &amp; 5 &amp; 7 \\ 4 &amp; 9 &amp; 2 \\ }; \draw[thick,red,-&gt;] (magic-1-1) |- (magic-2-3); \end{tikzpicture}  \end{frame} \end{document} How to change XML Attribute How can I change an attribute of an element in an XML file, using C#?