Git Product home page Git Product logo

pbudk's Introduction

pbUDK

pbUDK is a toolset for working with and exporting content from Maya to UDK, Includes one click export tools, and collision hull generation tools with future plans for exporting transformations via unrealText to udk.

Installation

Clone or extract contents to the parent of your Maya scripts folder. Than enable the DDConvexHull plug-in for your version of Maya in the Maya plugin manager

Once this is done simply just open a python console and run these commands.

import pbUDK
pbUDK.UI()

Optionally you could create a shelf button containing the same python code as above.

Usage

Physics

Once you got the UI running you can add adjust the amount of verts in the collision hull and add hulls with the add hull button. If using the convex hull mode instead of box collision you can update the amount of verts in real time on a selected object with a hull attached, up to the point where you delete history.

Export Meshes

Export path just sets a directory to dump all export fbx files into, the file name it’s self id set from the name of the objects transform in the maya scene. Move to origin, moves objects to 0 0 0 XYZ in the scene, before export and places them back to their old locations after export. Export children exports any meshes parented to the selected mesh I put this option in here so it will auto export collision hulls made with this tool. The tool comes with a default FBX export preset file that has good settings for UDK, but this can be set to use one made by the user with the FBXPreset button.

pbUDK

Credits

The convex hull DDConvexHull generation plug-in was written by Jonathan Tilden, who created a Maya Node that uses the StanHull method to create a convex hull in real-time. The open source code StanHull code in the plugin was written by Stan Melax and John Ratcliff.

pbudk's People

Contributors

cmcpasserby avatar arubertoson avatar onesingledream avatar

Stargazers

 avatar Kim Hopkins avatar shuishan avatar Kurtis avatar  avatar  avatar  avatar  avatar Timothy Rapp avatar Umberto Vollono avatar Chen.JK avatar Do Trinh (JimJim) avatar  avatar vasya vasin avatar xtvjxk avatar Sergey Makeev avatar  avatar Dennis Shih Hwa Lai avatar  avatar Jason Bray avatar z350z avatar  avatar Kief avatar Louys avatar Aleksey Pindrus avatar Daniel Elliott avatar

Watchers

Dennis Shih Hwa Lai avatar James Cloos avatar Kief avatar  avatar  avatar Rogier Schalken avatar  avatar  avatar

pbudk's Issues

Error: 'module' object has no attribute '<some-random-thing>'

Not sure what I'm doing wrong. Plugin is loaded in Maya 2014 SP2

Wasn't sure if the files should be extracted to global \maya\ or version specific \maya\2014-x64\ Tried both anyway. same result.

The first time I tried to launch in the Python editor, it complained that was missing attribute MayaHIK, which I recognised as a plugin, disabled it and then the error changed to something different like xgmBlahblah, but always something.

Error

# pymel.core : Updating pymel with pre-loaded plugins: DirectConnect, mayaHIK, AbcImport, tiffFloatReader, xgenToolkit, VectorRender, gpuCache, rotateHelper, xgenMR, MayaMuscle, Substance, AutodeskPacketFile, autoLoader, fbxmaya, matrixNodes, ik2Bsolver, modelingToolkit, OpenEXRLoader, ikSpringSolver, Mayatomr, DDConvexHull-2014_64bit, AbcExport, ArubaTessellator, quatNodes, mayaCharacterization, OneClick, retargeterNodes, sceneAssembly # 
# Warning: pymel.internal.factories : could not create a PyNode for manipulator type xgmGuideManip # 
# Warning: pymel.internal.factories : could not create a PyNode for manipulator type xgmPointsManip # 
# Warning: pymel.internal.factories : could not create a PyNode for manipulator type igBrushManip # 
# Error: line 1: 'module' object has no attribute 'apfEntityNode'
# Traceback (most recent call last):
#   File "<maya console>", line 1, in <module>
#   File "C:/Users/Kief/Documents/maya/2014-x64/scripts\pbUDK.py", line 4, in <module>
#     import pymel.core as pm
#   File "D:\Autodesk\Maya2014\Python\lib\site-packages\pymel\core\__init__.py", line 297, in <module>
#     _installCallbacks()
#   File "D:\Autodesk\Maya2014\Python\lib\site-packages\pymel\core\__init__.py", line 295, in _installCallbacks
#     _pluginLoaded( plugin )
#   File "D:\Autodesk\Maya2014\Python\lib\site-packages\pymel\core\__init__.py", line 134, in _pluginLoaded
#     _addPluginCommand(pluginName, funcName)
#   File "D:\Autodesk\Maya2014\Python\lib\site-packages\pymel\core\__init__.py", line 63, in _addPluginCommand
#     _pmcmds.addWrappedCmd(funcName)
#   File "D:\Autodesk\Maya2014\Python\lib\site-packages\pymel\internal\pmcmds.py", line 115, in addWrappedCmd
#     cmd = getattr(maya.cmds, cmdname)
# AttributeError: 'module' object has no attribute 'apfEntityNode' #

This plugin doesn't seem to function in Maya 2014 or Maya 2015

So I have spent some time trying to get this plugin to function to no avail. Following all the correct instructions and even doing clean installs of both Maya 2014 and Maya 2015 leaves me with two seperate errors. Maya 2014 leaves me with the error:

// Error: pbUDK.UI(); //
// Error: Line 2.10: Syntax error //

And Maya 2015 leaves me with the error:

Error: RuntimeError: file C:\Program Files\Autodesk\Maya2015\bin\python27.zip\json\decoder.py line 382: maximum recursion depth exceeded while calling a Python object

I have no idea what is causing this and am getting increasingly frustrated. The proper version of DDconvex Hull plugin is used for both versions of Maya.

Any ideas on how to fix this? Much appreciated.

EDIT: FIgured out the issue, I am and idiot and was running python script in the MEL box. 2014 now works but 2015 still eludes me.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.