5/3/2023 0 Comments Maya and the three blenderAlthough I am puzzled about its selection command, I like the theory behind _object. (I find that and are confusing, and easy to mix them up). The selection command in Maya is more precise and mature than that in Blender. In this case, I would prefer Maya API more as cmds.ls would let programmer to select what they want and it is easier to grab the imported data. (I will discuss more about it in the asset management tools for Blender) I only think of two solutions for the problem: the first one is to scaling down manually and the second one is having a new function to select the imported mesh's object and scale it down. But if you can't select the object, how can you bring the mesh's scale down. The capable way for scaling down is selecting the object and bring down its scales. But this is not the same case when I am using _scene.obj(filepath=MYMESHPATH), it does not include global_scale as a callback. Some might say I can use _scene.fbx(filepath= MYMESHPATH, global_scale = 0.01) to adjust the scale. After importing meshes, I cannot continuously use or _all to select the mesh and parent it to the empty(aka locator in Maya). For some reasons, their API makes it quite difficult to set up attributes or do any parent constraints to the imported meshes. In contrast, I can only ask Python to import meshes to the scene in Blender within one function. It is just a few lines of code to finish the process with one function. I then use tAttr set the scale attributes into 0.01. I use Python to ask Maya to create locator, select it and make it as the parent of the imported mesh. Scaling down the mesh is necessary before the look development. When importing obj or fbx files into maya or blender, the mesh might be larger than expected. Blender API, however, requires programmer to execute two separate functions to finish both importing and scaling the mesh. Maya API allows more flexibility and only one function needed to set up transform attributes of the meshes after importing it. Importing Meshes and Transformation attributes As some of you know I made VStitcher Plugins for both software, I am going to use these as examples and discuss the differences between two APIs. It is rewarding to realize the differences of coding between the two APIs to make the similar functions(similar, can't be exactly the same). I have been trying to create similar tools in Maya and Blender with their UI to compare both Python API.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |