Getting started:
Related tutorials:
| import maya.cmds as cmds | |
| # Create polygon sphere | |
| cmds.polySphere() | |
| # Create polygon sphere with radius of 10 | |
| cmds.polySphere(radius=10) | |
| # help | |
| cmds.help("polySphere") |
Getting started:
Related tutorials:
| public class recursiveMultiply { | |
| public static void main(String[] args) { | |
| int result = product(10,5); | |
| System.out.print(result); | |
| } | |
| public static int product(int a, int b) { | |
| if(a == 0) return 0; | |
| else if(a == 1) return b; | |
| return (product(a-1,b) + b); | |
| } |
| class squareProgression extends Progression{ | |
| protected double first; | |
| protected double cur; | |
| protected double firstValue1(){ | |
| cur = first; | |
| return cur; | |
| } | |
| squareProgression(){ | |
| this(65536); |
| // C-2.2 | |
| public class Progression{ | |
| //first value of the progression | |
| protected long first; | |
| //current value | |
| protected long cur; | |
| //constructor | |
| Progression(){ | |
| cur = first = 0; | |
| } |
| worldwide_gross_by_genre = [] | |
| Object.keys(dict).forEach(function(key){ | |
| di["genre"] = key | |
| di["average"] = dict[key] | |
| worldwide_gross_by_genre.push({ | |
| key:key, | |
| value:dict[key] | |
| }) | |
| }) |