Archives de l’auteur : Davy

Maya – MelScript : change color index on selected objects


// MelScript change color index on selected objects

stringCette instruction crée une variable de type chaîne.
Les chaînes sont des variables qui peuvent contenir des chiffres, des lettres et des caractères de ponctuation.
On peut les concaténer avec d’autres variables chaînes mais on ne peut pas faire de calcul.
$array[]Ici, nous demandons au script de créer une variable tableau.
Le type est défini juste avant : chaîne.
Chaque variable contiendra un élément de la sélection.
= `ls -sl`;
forC’est ce qu’on appelle une boucle FOR.
le script va répéter autant de fois qu’il est demandé les instructions entre accolades.
Ici, pour chaque élément de la sélection la boucle FOR va exécuter le contenu.
Attention aux boucles FOR, si elles sont mal construites vous risquez une boucle infinie.
($item in $array)
{
  setAttr ($item + ".overrideEnabled") 1Ce nombre sert à activer la propriété Override.
De cette manière le script coche la case pour vous.
;
  setAttr ($item + ".ovc") 17Ce nombre est à modifier selon la couleur désirée.
Actuellement c’est la couleur jaune qui est choisie.
Voir la liste juste en dessous.
;
}

// 4  – purple
// 6  – blue
// 9  – fuchsia
// 13 – red
// 14 – green
// 17 – yellow

Camera exporting from Blender to 3DS Max / Maya

Here is the process :

  • Source from : https://blenderartists.org/t/camera-exporting-from-blender-to-3d-max/625635/2 (viewed on 2019.09.19)
  • Extract :
    • « Solved it.Set the framerate in Blender and Max/Maya to be the same as the footage is.
    • Bake the camera animation in Blender. Press T to open the toolbox, select Animation tab and click Bake Action. In the dialog that opens, check Clear constrains, Clear parents and Only selected. Choose the frame range and click OK
    • Motion path has disappeared and now you have keyframes. Make sure the camera still moves the same way.
    • Go to File->Export->Autodesk FBX
    • Now here’s the key. For Version select FBX 6.1 ASCII
    • Set your up axis to Z if you’re using Max. For Maya, leave it to Y.
    • Set your forward axis, I don’t know what is it for Max, try the default.
      Don’t touch the scale unless you really need to
    • Export.
    • Make sure to set the framerate right in Max before importing! That must be done!
      Import and enjoy.
    • That’s it. Works for Blender 2.72 and Maya 2015. Report did it work! »