Questions tagged [mel]

MEL is the Maya Embedded Language used to automate processes in the 3D Computer Animation and Modeling software, "Maya".

MEL stands for Maya Embedded Language, which is a scripting language similar to Perl. It can be used to create automated processes in Autodesks's 3D rendering application Maya.

More information can be found in the Wiki about MEL.

417 questions
1
vote
0 answers

View ongoing Alembic cache in Maya

So for example, I am caching using Alembics a mesh for 1000 frames and at 500 frames of it, I want to be able to view it in Maya. I know that if I import that ongoing alembic it does not show anything in the viewport and errors out. # Error:…
dXJensen23
  • 21
  • 2
1
vote
0 answers

Why 128 mel bands are used in mel spectrograms?

I am using the mel spectrogram function which can be found here:Mel Spectrogram Librosa I use it as follows: signal = librosa.feature.melspectrogram(y=waveform, sr=sample_rate, n_fft=512, n_mels=128) Why is 128 mel bands use? I understand that the…
swe87
  • 129
  • 1
  • 3
  • 13
1
vote
2 answers

Python FBX SDK – How to scale models that have keyframes?

I am trying to script with Python FBX SDK to scale models. And I am using LclScaling.Set() to set scale value. But I found if this model has keyframes, then the scaling is not applied. So my question is how to properly scale models that have…
LOOK2001
  • 55
  • 4
1
vote
2 answers

Maya Mel Scripted Animation Not Animating as FBX

I've acquired a great quad model. I skinned and animated it to a rig build by a Mel script. It works great as far as editing the animation using sliders and parameters in Maya. When I export the file as an FBX file to Unity3D, it does not animate.…
Digital D
  • 161
  • 2
  • 3
  • 17
1
vote
1 answer

Maya – How to reorder Shelves alphabetically?

I'm trying to alphabetically order Maya shelves. I know that I can import shelves in order but I want to do this after the shelves are imported as the default Maya shelves are automatically imported into Maya. I tried using the position argument in…
Rocker
  • 11
  • 1
1
vote
1 answer

How to map special character field in Mule 3 dataweave?

I have an XML payload which consists of many fields out of which there is one field which has special character. Antigüedad is the field name and I am transforming this XML payload to JSON as Antigüedad: payload.@Antigüedad I am getting an error as…
RV2509
  • 35
  • 10
1
vote
1 answer

How can i query the amount of reversed and overlapping UVs in maya

I am currently developing a tool for artists on maya to make sure their meshes are clean before export. One thing i'd like to check for is if there are any overlapping or reversed UV on their meshes. I know maya display this information the UV…
1
vote
1 answer

Changing background color (bgc) of windows in Maya?

I worked somewhere in the past where since we had multiple sessions of Maya open, the background color could be randomly changed so when you switched from a session quickly it was easy to sort out which window belonged to what Maya session. And so…
alex04
  • 25
  • 6
1
vote
1 answer

maya (mel or python) : can we query the state of the lock selection?

I would know if - in maya - I can get the state of the 'lock selection'. I have this command: updateLockSelectionIcon; this command locks and unlock. but there is no argument with. this is a switch which depends on its previous state. But in the…
1
vote
1 answer

Setting a hotkey for a custom runTimeCommand in Maya

My goal: Set up a simple class to add some keyboard macros to Maya at startup. My Issue: The intended key mappings are not set in the hotkey editor. Editing them manually does work, but as these are default commands, they need to be set…
m3trik
  • 333
  • 2
  • 13
1
vote
1 answer

Is it possible to update the custom properties inside the mule application during execution

I want to update the custom properties during application execution in Mule 3. e.g. property name is path Access the property ${path}. Any way to update the path variable dynamically using MEL or DataWeave1.0 or any alternate solution.
1
vote
0 answers

The last dimension of the extracted Mel spectrum is 4

I am new to speech recognition. I plan to extract the Mel spectrum of the audio data, but I print out img.shape and find that its dimension is (650, 20000, 4), and the last dimension is 4, I don’t know why. Below is my code function. def…
赵若琰
  • 11
  • 2
1
vote
3 answers

Select Subobjects in maya python

I am currently trying to give each subobject of a DAG node a different color. It works when I am selecting each of those subobject/elements (but not all)in the component select mode and then run the script over it. But selecting the mesh as whole,…
Gizmo
  • 23
  • 6
1
vote
1 answer

How can you check if a frame is a keyframe in Maya with Python?

I need to cycle through every frame of an animation in Maya and create two arrays, one of the values of a given attribute at every single frame, and one of those values only at the keyframes. Problem is, I can't figure out how to make maya ask the…
1
vote
1 answer

What does followObject_Setup and followObjectExpr meant to do here

I am new to Maya scripting and I am asked to convert the below MEL to Python. I've been searching for all the commands in Mel and everything seemed to be fine, except the two terms ## followObject_setup and followObjectExpr ## in the below…
Pradeep
  • 116
  • 11