File: example_local.iv

package info (click to toggle)
pivy 0.6.10-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,216 kB
  • sloc: python: 36,331; cpp: 787; ansic: 733; makefile: 30; sh: 27; objc: 5
file content (37 lines) | stat: -rw-r--r-- 924 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#Inventor V2.0 ascii

# example that shows the usage of files

DEF root Separator {
   DEF shuttle SoShuttle {
      translation0 0 0 0
      translation1 -1 0.5 -1
   }
   Material { diffuseColor 1.0 0.0 0.0 }
   DEF Glow SoPyScript {
      fields [ SoSFColor color, SoSFFloat brightness, SoSFFloat transparency ]
      color 1 0 0 = USE shuttle.translation
      brightness 0.5
      transparency 0.3
      script "../SoPyScript/glow.py"
   }
   Cone {}
   Material { diffuseColor 0 0 1 }
   Sphere{}
   SoTranslation { translation 0 1.2 0 }
   SoFont {
      name "Times New Roman"
      size 24.0
   }
   DEF TextScroller SoPyScript {
      fields [ SoSFString string, SoSFColor color ]
      string "I am Pivy powered!"
      color 0 1 0
      script "file:./textscroll.py"
   }
   Material { diffuseColor = USE TextScroller.color }
   SoText2 {
      string = USE TextScroller.string
      justification CENTER
   }
}