@@ -104,45 +104,43 @@ def __init__(self, models=None, anims=None, other=None, copy=True,
104104 lodNode = None , flattenable = True , setFinal = False ,
105105 mergeLODBundles = None , allowAsyncBind = None ,
106106 okMissing = None ):
107- """__init__(self, string | string:string{}, string:string{} |
108- string:(string:string{}){}, Actor=None)
109- Actor constructor: can be used to create single or multipart
107+ """Actor constructor: can be used to create single or multipart
110108 actors. If another Actor is supplied as an argument this
111109 method acts like a copy constructor. Single part actors are
112110 created by calling with a model and animation dictionary
113- (animName:animPath{}) as follows:
111+ `` (animName:animPath{})`` as follows: :
114112
115- a = Actor("panda-3k.egg", {"walk":"panda-walk.egg" \
113+ a = Actor("panda-3k.egg", {"walk":"panda-walk.egg",
116114 "run":"panda-run.egg"})
117115
118- This could be displayed and animated as such:
116+ This could be displayed and animated as such::
119117
120118 a.reparentTo(render)
121119 a.loop("walk")
122120 a.stop()
123121
124122 Multipart actors expect a dictionary of parts and a dictionary
125- of animation dictionaries (partName:(animName:animPath{}){}) as
126- below:
123+ of animation dictionaries `` (partName:(animName:animPath{}){})``
124+ as below: :
127125
128126 a = Actor(
129127
130128 # part dictionary
131- {"head":"char/dogMM/dogMM_Shorts-head-mod", \
132- "torso":"char/dogMM/dogMM_Shorts-torso-mod", \
133- "legs":"char/dogMM/dogMM_Shorts-legs-mod"}, \
129+ {"head": "char/dogMM/dogMM_Shorts-head-mod",
130+ "torso": "char/dogMM/dogMM_Shorts-torso-mod",
131+ "legs": "char/dogMM/dogMM_Shorts-legs-mod"},
134132
135133 # dictionary of anim dictionaries
136- {"head":{"walk":"char/dogMM/dogMM_Shorts-head-walk", \
137- "run":"char/dogMM/dogMM_Shorts-head-run"}, \
138- "torso":{"walk":"char/dogMM/dogMM_Shorts-torso-walk", \
139- "run":"char/dogMM/dogMM_Shorts-torso-run"}, \
140- "legs":{"walk":"char/dogMM/dogMM_Shorts-legs-walk", \
141- "run":"char/dogMM/dogMM_Shorts-legs-run"} \
134+ {"head":{"walk": "char/dogMM/dogMM_Shorts-head-walk",
135+ "run": "char/dogMM/dogMM_Shorts-head-run"},
136+ "torso":{"walk": "char/dogMM/dogMM_Shorts-torso-walk",
137+ "run": "char/dogMM/dogMM_Shorts-torso-run"},
138+ "legs":{"walk": "char/dogMM/dogMM_Shorts-legs-walk",
139+ "run": "char/dogMM/dogMM_Shorts-legs-run"}
142140 })
143141
144142 In addition multipart actor parts need to be connected together
145- in a meaningful fashion:
143+ in a meaningful fashion::
146144
147145 a.attach("head", "torso", "joint-head")
148146 a.attach("torso", "legs", "joint-hips")
@@ -151,7 +149,7 @@ def __init__(self, models=None, anims=None, other=None, copy=True,
151149 # ADD LOD COMMENT HERE!
152150 #
153151
154- Other useful Actor class functions:
152+ Other useful Actor class functions::
155153
156154 #fix actor eye rendering
157155 a.drawInFront("joint-pupil?", "eyes*")
@@ -1135,7 +1133,7 @@ def stopJoint(self, partName, jointName, lodName="lodRoot"):
11351133 def getJoints (self , partName = None , jointName = '*' , lodName = None ):
11361134 """ Returns the list of all joints, from the named part or
11371135 from all parts, that match the indicated jointName. The
1138- jointName may include pattern characters like *. """
1136+ jointName may include pattern characters like \\ *. """
11391137
11401138 joints = []
11411139 pattern = GlobPattern (jointName )
@@ -2439,15 +2437,15 @@ def actorInterval(self, *args, **kw):
24392437 return ActorInterval .ActorInterval (self , * args , ** kw )
24402438
24412439 def getAnimBlends (self , animName = None , partName = None , lodName = None ):
2442- """ Returns a list of the form:
2443-
2444- [ (lodName, [(animName, [(partName, effect), (partName, effect), ...]),
2445- (animName, [(partName, effect), (partName, effect), ...]),
2446- ...]),
2447- (lodName, [(animName, [(partName, effect), (partName, effect), ...]),
2448- (animName, [(partName, effect), (partName, effect), ...]),
2449- ...]),
2450- ... ]
2440+ """Returns a list of the form: :
2441+
2442+ [ (lodName, [(animName, [(partName, effect), (partName, effect), ...]),
2443+ (animName, [(partName, effect), (partName, effect), ...]),
2444+ ...]),
2445+ (lodName, [(animName, [(partName, effect), (partName, effect), ...]),
2446+ (animName, [(partName, effect), (partName, effect), ...]),
2447+ ...]),
2448+ ... ]
24512449
24522450 This list reports the non-zero control effects for each
24532451 partName within a particular animation and LOD. """
0 commit comments