SHARE
TWEET

Untitled

a guest Nov 16th, 2019 105 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Starting my code here
  2.             self.torso = loader.loadModel('phase_9/models/char/sellbotBoss-torso-zero')
  3.             self.head = loader.loadModel('phase_9/models/char/sellbotBoss-head-zero')
  4.             neck = self.torso.find('**/joint34')
  5.             self.head.reparentTo(neck)
  6.             self.torso.reparentTo(render)
  7.             self.torso.setPos(6.369, -194.754, 124.064)
  8.  
  9.             # Create parent node
  10.             propNode = self.torso.attachNewNode('prop')
  11.             propNode.hide()
  12.  
  13.             # Three objects that come out of the VP
  14.             self.train = loader.loadModel('phase_10/models/cogHQ/CashBotLocomotive')
  15.             self.train.reparentTo(propNode)
  16.  
  17.             self.gear = loader.loadModel('phase_9/models/cogHQ/FactoryGearB')
  18.             self.gear.reparentTo(propNode)
  19.             self.gear.setScale(10)
  20.  
  21.             self.pie = loader.loadModel('phase_3.5/models/props/tart')
  22.             self.pie.reparentTo(propNode)
  23.             self.pie.setScale(3)
  24.  
  25.             self.interval = Sequence(
  26.                 LerpPosInterval(self.torso, 3.5, (6.369, -194.754, -20)),
  27.                 LerpColorScaleInterval(self.torso, 0.1, (1.0, 0, 0, 1.0)),
  28.                 LerpScaleInterval(self.torso, 0.5, 1.5),
  29.                 LerpScaleInterval(self.torso, 0.5, 1.0),
  30.                 LerpColorScaleInterval(self.torso, 0.1, (1, 1, 1, 1)),
  31.                 Func(propNode.show),
  32.                 Func(self.gear.wrtReparentTo, render),
  33.                 Func(self.train.wrtReparentTo, render),
  34.                 Func(self.pie.wrtReparentTo, render),
  35.                 Parallel(
  36.                 LerpPosInterval(self.train, 1.0, (55.265, -202.445, -12.723)),
  37.                 LerpPosInterval(self.gear, 1.0, (-4.627, -214.328, -19.594)),
  38.                 LerpPosInterval(self.pie, 1.0, (-29.456, -172.700, -19.594))
  39.                 ),
  40.                 Wait(5.0),
  41.                 Func(self.torso.setPos, 6.369, -194.754, 124.064),
  42.                 Func(propNode.hide),
  43.                 Func(self.gear.reparentTo, propNode),
  44.                 Func(self.train.reparentTo, propNode),
  45.                 Func(self.pie.reparentTo, propNode),
  46.                 Func(self.train.setPos, 0, 0, 0),
  47.                 Func(self.gear.setPos, 0, 0, 0),
  48.                 Func(self.pie.setPos, 0, 0, 0)
  49.             )
  50.             self.interval.loop()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top