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
}
}
|