Blender (jusqu'à 2.49)
Python 
 RVK (1/n)
Copy  rvk 1 on  rvk 2
(Version française)
   Table of content   Index
previousScript spread by material
Script menu: Next

1/ use the first script to make an exact copy 
    with the same number of vertices. really needed, no 
    other possible choise.
2/ select the new mesh and after the first one. So, 
    the original is the active mesh
3/ go to the frame where you want to transfer the rvk
4/ put the mose upon the text window and do alt-p.
The rvk state (all positions of vertices) of the active 
selected object is  inserted as a new rvk  in the second 
of the select list.
The actual scripts work fine.  If you copy them in the 
.blender/scripts  directory,  with a little luck, they will 
appear in the script menu Misc.

Download the script, updated :  30/07/2004
Download an example of the old script
 
 

#!BPY

""" Registration info for Blender menus: <- these words are ignored
Name: 'Rvk1toRvk2'
Blender: 232
Group: 'Misc'
Tip: 'Copy the rvk1 to rvk2'
"""
#----------------------------------------------
# jm soler  05/2004 :  'Rvk1toRvk2'
#----------------------------------------------
# Page officielle :
#   http://jmsoler.free.fr/util/blenderfile/py/cpl_rvk1versrvk2.htm
# Communiquer les problemes et erreurs sur:
#   http://www.zoo-logique.org/3D.Blender/newsportal/thread.php?group=3D.Blender
#---------------------------------------------

import Blender
from Blender import NMesh
try:
  RVK1=Blender.Object.GetSelected()[0].getName()
  RVK2=Blender.Object.GetSelected()[1]

  me=RVK2.getData() #obligatoirement le mesh standard
  mrvk2=NMesh.GetRawFromObject(RVK1) #l# les donnes du mesh transformes, 
                                                                        ## une fenetre 3d doit être ouverte.

  for v in mrvk2.verts:
     i= mrvk2.verts.index(v)
     v1=me.verts[i]
     for n in range(len(v.co)):
          v1.co[n]=v.co[n]

  me.update()
  me.insertKey()
  me.update()
except:
    print 'problem  : not object selected or not mesh' 


 
previousScript spread by material
Script menu: Next
Top of the page  Haut de page

Les questions concernant cette page  peuvent être posées sur  :
 news://news.zoo-logique.org/3D.Blender


 

 

Livre en français
Blender : apprenez, pratiquez, Créez, livre, Ed. Campus Press, coll. Starter Kit
Blender Starter Kit

Forum
FAQ
Lexique
Didacticiels
Compilations
Blender2KT
Débuter
Modelage
Blender python
Materiaux
Lumière
Animation
API python (eng)
Archives nzn
Statistiques
Doc flash Sculptris
Galerie Sculptris

mon site de démos sur youtube