maya

Display 3dsmax models in web browser [closed]

半城伤御伤魂 提交于 2019-11-30 09:39:45
I have some 3d models written in 3dmax/maya/cad/4dcinema , i wand to display them in my website so user can rotate the model and inspect it . i have found this on the internet http://replimat.com/thingiview/examples/client_side_ajax.html i think it will work IF i could somehow convert those models from 3dmax/maya/cad/3dcinema to OBJ/STL . is there any converter available for linux ? or any other method to display those models in web browser without having to install anything on the browser ? thank you . Export your model in maya to a wavefront(.obj) file. Then you could use a library like

Sending multiline commands to Maya Through Python Socket

独自空忆成欢 提交于 2019-11-30 07:44:30
I want to know is there a way to send a multiline command to maya through python socket and the Maya's own "commandPort" command? I'm using below code for sending the code to maya("message" value is the command): import socket #HOST = '192.168.1.122' # The remote host HOST = '127.0.0.1' # the local host PORT = 54321 # The same port as used by the server ADDR=(HOST,PORT) def SendCommand(): client = socket.socket(socket.AF_INET, socket.SOCK_STREAM) client.connect(ADDR) command = 'import maya.cmds as mc mc.polyCube()' # the commang from external editor to maya MyMessage = command client.send

Querying of a point is within a mesh maya python api

*爱你&永不变心* 提交于 2019-11-30 05:31:56
I'm trying to figure out a way of calculating if a world space point is inside of an arbitrary mesh. I'm not quite sure of the math on how to calculate it if it's not a cube or sphere. Any help would be great! One can use a simple ray tracing trick to test if you are inside or outside of a shape. It turns out that 2D, 3D objects or possibly even higher dimension objects have a neat property. That is if you shoot an arbitrary ray in any direction you are inside the shape if, and only if you hit the boundaries of your shape and odd number of times. No need to know the normal direction or

Maya Python: cmds.button( ) with UI passing variables and calling a function?

我怕爱的太早我们不能终老 提交于 2019-11-30 02:32:23
First of all, this seems to be a great place to learn more about programming. I've written a maya python script, where both functions work, I'm having trouble getting the UI button to call the superExtrude() function, though. The first function does the geometric mesh manipulations and the second one should produce the UI for the user inputs: import maya.cmds as cmds def superExtrude(extrScale, extrDist): """Loops through a list of selected meshes and extrudes all of the mesh faces to produce a polygon frame, based on existing mesh tesselations""" myObjectLt = cmds.ls(selection=True) for i in

How do I change the python version in Maya 2013?

江枫思渺然 提交于 2019-11-29 15:41:54
问题 I am aiming to write a python script in Maya 2013 that uses a SWIG wrapped pyd library which is compiled using Python 2.7. I cannot rebuild the pyd in Python 2.6.4 which is the version that Maya is bound to. Maya of course then gives this error Module use of python27.dll conflicts with this version of Python. # How can I change it so that Maya uses Python 2.7? I have already tried to tinker with the usual (PYTHON_PATH, PYTHONHOME, etc) environment variables to no success. 回答1: Maya doesn't

Dockable window in Maya with PySide clean up

不打扰是莪最后的温柔 提交于 2019-11-29 15:40:06
问题 I created a tool that is able to dock in Maya's main ui, but I can't figure out a way to clean it up once it closes. The problem is if I create multiple instances of the tool then drag it in place to dock it, they will ALL show up when I right-click on Maya's window. How do I properly clean these up when the tool closes? I already tried cmds.deleteUI , QObject.deleteLater() and at best I can only clear the tool's contents, but it will still exist in Maya. Here's an example of what I have so

Display 3dsmax models in web browser [closed]

六眼飞鱼酱① 提交于 2019-11-29 14:28:36
问题 I have some 3d models written in 3dmax/maya/cad/4dcinema , i wand to display them in my website so user can rotate the model and inspect it . i have found this on the internet http://replimat.com/thingiview/examples/client_side_ajax.html i think it will work IF i could somehow convert those models from 3dmax/maya/cad/3dcinema to OBJ/STL . is there any converter available for linux ? or any other method to display those models in web browser without having to install anything on the browser ?

Calling back user input values inside maya UI

江枫思渺然 提交于 2019-11-29 13:06:00
I've built a small program using python in maya, and im interested in printing the values that the user inputs upon the click of 'Apply'. Any ideas on how I can achieve this? I want to then use the values in another piece of code to create buildings inside maya. def runGrid(): if mc.window('windowTest9', ex=True): mc.deleteUI('windowTest9', window=True) mc.window('windowTest9', title='BuilGen', sizeable=False, resizeToFitChildren=True) mc.rowColumnLayout( numberOfColumns = 2, columnWidth = [ (1, 150), (2, 100), (3, 75)]) #mc.text( label = 'Top Bar') mc.separator( h = 10, style = 'none') mc

Querying of a point is within a mesh maya python api

非 Y 不嫁゛ 提交于 2019-11-29 05:40:25
问题 I'm trying to figure out a way of calculating if a world space point is inside of an arbitrary mesh. I'm not quite sure of the math on how to calculate it if it's not a cube or sphere. Any help would be great! 回答1: One can use a simple ray tracing trick to test if you are inside or outside of a shape. It turns out that 2D, 3D objects or possibly even higher dimension objects have a neat property. That is if you shoot an arbitrary ray in any direction you are inside the shape if, and only if