|
1 | 1 | { |
2 | 2 | "metadata": { |
3 | | - "signature": "sha256:101669e0caf7c22901eb0116ddbdb07ccd7c17fb442af2860ada51246dc0ae8d" |
| 3 | + "signature": "sha256:56ed6dc37d0e2622868db8e07ae2934ead3b433509b39f10c9b82d60518a0b76" |
4 | 4 | }, |
5 | 5 | "nbformat": 3, |
6 | 6 | "nbformat_minor": 0, |
|
29 | 29 | "\n", |
30 | 30 | "Running the contour.py python script example, you should get:\n", |
31 | 31 | "\n", |
32 | | - "\n", |
33 | 33 | "\n", |
34 | 34 | "First, enable python shell clicking on Python in the \"View\" menu. A\n", |
35 | 35 | "python shell should appear at the bottom of the !MayaVi2 window:\n", |
36 | 36 | "\n", |
37 | | - "\n", |
38 | 38 | "\n", |
39 | 39 | "Then drag any object from the tree view on the left and drop it on the\n", |
40 | 40 | "python shell and you'll get the object. Say you want to get the Outline\n", |
41 | 41 | "module:\n", |
42 | 42 | "\n", |
43 | | - "\n", |
44 | 44 | "\n", |
45 | 45 | "Now, you can use your object following two ways: typing directly in the\n", |
46 | 46 | "python shell or using the explore() method.\n", |
|
49 | 49 | "\n", |
50 | 50 | "You can create an instance of your object in the python shell window.\n", |
51 | 51 | "\n", |
52 | | - "\n", |
53 | 53 | "\n", |
54 | 54 | "Note that you benefit of \"word completion\" in this python shell, ie a\n", |
55 | 55 | "little window popups letting you choose the name of the expected object\n", |
56 | 56 | "or method.\n", |
57 | 57 | "\n", |
58 | 58 | "Thus, you can display the RGB values of the outline color for instance:\n", |
59 | 59 | "\n", |
60 | | - "\n", |
61 | 61 | "\n", |
62 | 62 | "However, find out objects or methods can be not so easy: you may not\n", |
63 | 63 | "know how they depends from each other. An easier way is using the\n", |
|
101 | 101 | "source": [ |
102 | 102 | "if you have previously defined it:\n", |
103 | 103 | "\n", |
104 | | - "\n", |
105 | 105 | "\n", |
106 | 106 | "Then, you get the following window:\n", |
107 | 107 | "\n", |
108 | | - "\n", |
109 | 109 | "\n", |
110 | 110 | "Considering the last example, about the color of the outline module, you\n", |
111 | 111 | "can unfold the \"tree\" and thus, get the info you need:\n", |
112 | 112 | "\n", |
113 | | - "\n", |
114 | 114 | "\n", |
115 | 115 | "Very powerful, isn't it ! :-)\n", |
116 | 116 | "\n", |
|
0 commit comments