Search found 20 matches

by breakin
Thu Dec 02, 2004 6:32 pm
Forum: Python
Topic: finding subsurface vertices
Replies: 3
Views: 1753

Seems NMesh.GetRaw(objectName) does NOT apply subdivisionsurfaces, only returns the nmesh itself. Since subdiv-level is per nmesh and not per object there is no reason why there shouldn't be such a function, like NMesh.GetRawFromNMesh(name) or something (does all deformation that is applied to the m...
by breakin
Thu Oct 21, 2004 2:31 pm
Forum: Python
Topic: Export subdivisionsurfaces for armatures
Replies: 5
Views: 2021

Is the old feature request tracker used or should the feature request be moved into the new one? Hereby consider the feature requested ;) I think it's a usuable feature, especially for export. Makes it so much easier. Maybe I do my own subdiv-code and then it's a non-issue but until then it's good t...
by breakin
Thu Oct 21, 2004 3:48 am
Forum: Python
Topic: Export subdivisionsurfaces for armatures
Replies: 5
Views: 2021

HM. This is a bit dependant on weater blender applies armature-deform before or after subdivision. I guess before. Thing is I would like the weights for the subdivided version so I could do the armature deform myself, but if blender does armature-deform first there is absolutely no way. Otherway the...
by breakin
Thu Oct 21, 2004 1:43 am
Forum: Python
Topic: Export subdivisionsurfaces for armatures
Replies: 5
Views: 2021

Export subdivisionsurfaces for armatures

If one does not want to get their hands dirty with the subdivisionsurfaces one can export using getRaw, getting the subdivided mesh. But for armatures when using getRaw the resulting mesh does not have any armature-weights (which is not surprising, given that getRaw is the fully defomred mesh). This...
by breakin
Tue May 25, 2004 2:09 am
Forum: Python
Topic: no Object.getChildren()
Replies: 7
Views: 4010

It's not really an c vs. python-issue, if the request is done naive then it's bad wherever it is. The problem is that to export N objects, getChildren has to be called N times and getChildren must loop through all the N objects, giving a complexity of N^2. If people choose to use the getChildren-fun...
by breakin
Tue May 18, 2004 5:07 pm
Forum: Python
Topic: no Object.getChildren()
Replies: 7
Views: 4010

While this code snippet might seem slow, it's very obviously so. The alternative, providing a object.getChildren(), would be far slower unless the children of an object is already cached in Blender for each object (don't know about this). There has to be some sort of cache in order for this to work,...
by breakin
Thu May 06, 2004 3:10 pm
Forum: Python
Topic: Skeleton export problem...
Replies: 3
Views: 2266

IpoCurve.getName() action ipos is implemented so it should work now. Also now one can do, for an armature, action=object.getAction() ipos=action.getAllChannelIpos() to obtain a dictionary with all (bonename,ipo) so one no longer have to guess ipo-names for bone ipos. This should be covered in the up...
by breakin
Thu May 06, 2004 3:02 pm
Forum: Python
Topic: Object.getBoundBox()
Replies: 3
Views: 3948

In object-space min/max-point is the best thing (the two opposit corners of the box). The only sensible alternative is (centerPoint, halfSize) but I like #1 better personally... But this is only applicable for an axis-aligned bounding-boxes (AABB) not for oriented bounding-boxes (OBB). In worldspace...
by breakin
Fri Apr 02, 2004 8:06 pm
Forum: Python
Topic: Feature request:
Replies: 4
Views: 1643

Ok, it should be in the cvs by now.
by breakin
Fri Apr 02, 2004 7:18 pm
Forum: Python
Topic: getting ipocurve name for action quats
Replies: 4
Views: 2018

I've submitted a patch for this that hopefully gets accepted into the cvs-version of blender later today. It returns names for action-ipos as well as object-ipos. Unless I've missed something obvious it should be there.
by breakin
Fri Apr 02, 2004 1:12 pm
Forum: Animation
Topic: Euler Conversion
Replies: 2
Views: 6438

Okey, then I could stick with euler for objects. I'd need quat's for armature though so I might as well convert rotations into quat as well. Problem here is that the tracks has keys at different times, once I've gotten a singel euler-triple for each key it's easy to do euler->quat. Guess I should dr...
by breakin
Tue Mar 30, 2004 1:59 pm
Forum: Animation
Topic: Euler Conversion
Replies: 2
Views: 6438

Euler Conversion

Blender uses one track per component of the rotation [euler angel x-,y-,z-axis]. I'd like to have one vector-track for all three components, ie three euler-angel per key. For linear and constant it's easy to interpolate and insert until all three tracks have keys at the same places/frames and the th...
by breakin
Mon Mar 29, 2004 8:35 pm
Forum: Python
Topic: scripting a 321 robotic arm
Replies: 2
Views: 2336

Your question is off-topic but I answer it anyway.

As long as there is one cylinder in the scene, a Nmesh, you can link all your objects to that NMesh. So it can be shared. Thus when creating new robotic-cylinder-parts you just create a new object an attached the cylinder to it.
by breakin
Mon Mar 29, 2004 6:22 pm
Forum: Python
Topic: n00b export troubles with SubSer
Replies: 5
Views: 2369

That should be nmesh=Object.GetRawFromObject(objectName)
by breakin
Mon Mar 29, 2004 4:47 pm
Forum: Python
Topic: n00b export troubles with SubSer
Replies: 5
Views: 2369

I searched for "magic" and this came up:

Nmesh mesh=GetRawFromObject(objectName)