Re: [cgkit-user] cgkit-user Digest, Vol 14, Issue 4
Brought to you by:
mbaas
|
From: Matthias B. <mat...@gm...> - 2007-07-13 09:50:51
|
Rodrigo Culagovski wrote: > great, thanks for the help. Is there any way to give the object a name > as you're loading it? This will be handled by a script, so I won't be > able to pick the right name interactively. Well, the 3ds file might contain more than just one object. Giving the objects new names while they are loaded is currently not possible, you could only group them under a common parent (passing the keyword argument "parent" to the load() function). But intersectRay() has to be called directly on the geom, so you can't use the parent for that. But instead of obtaining the objects by name, you can also iterate over the scene (using scene.walkWorld(), for example) and check which object is a TriMesh and then shoot your rays on those objects. - Matthias - |