mmSolver.tools.createimageplane#
Create an Image Plane on a camera.
Tools#
The Create Image Plane tool.
- mmSolver.tools.createimageplane.tool.prompt_user_for_image_sequence(start_dir=None)#
- mmSolver.tools.createimageplane.tool.main()#
- mmSolver.tools.createimageplane.tool.main_version_one()#
- mmSolver.tools.createimageplane.tool.main_version_two()#
Library#
Library functions for creating and modifying image planes.
Idea - Create wrapper image plane node - The node should adjust either ‘live’ or ‘baked’ nodes.
Idea - Allow users to change the image sequence. - Both ‘live’ and ‘baked’ image planes are updated as needed. - Users can choose to auto-convert to Maya IFF format (for speed). - Users should have multiple file paths stored on the image plane,
with the choice to switch between them as needed.
Idea - Bake images into .iff files using Maya ‘imgcvt’ utility. - Experiment with .dds files to see if it’s faster in the Maya viewport or not. - Write to local ‘sourceimages/mmSolver_temp’ directory, by default.
Idea - Apply image processing templates to images. - Allow the use of OIIO, Natron or Nuke (if installed) - Features
Reformat / down-res plates. - Scale (50%) - Maximum width (2048) - Maximum height (2048)
Lens undistort (for baked image planes)
Converting to different formats (such as Maya ‘iff’)
Tool - Set Image Plane File Path
Tool - Toggle the Live/Baked image plane state.
Idea - Create a custom image plane shape node. - Pipe the deforming polygon plane into the shape node and draw it with
an image sequence on it.
This allows us to hide the polygons in a viewport but still show the image plane.
We can control the depth of the image plane with this method.
When the OCG Image Plane is fully developed we can easily replace this shape node with the ‘ocgImagePlane’.
- mmSolver.tools.createimageplane.lib.create_image_plane_on_camera(cam, name=None, version=None)#
Create an Image Plane that can be distorted in Maya’s viewport (realtime).
- mmSolver.tools.createimageplane.lib.convert_image_planes_on_camera(cam)#
Create an Image Plane that can be distorted in Maya’s viewport (realtime).
- mmSolver.tools.createimageplane.lib.set_image_sequence(mm_image_plane_node, image_sequence_path, attr_name=None, version=None)#
- mmSolver.tools.createimageplane.lib.get_default_image_path()#
- mmSolver.tools.createimageplane.lib.format_image_sequence_size(image_plane_shp)#
Look up node values and format as text.
Example output: ‘2,346.1MB (23.7MB x 102 frames)’
- mmSolver.tools.createimageplane.lib.format_cache_gpu_used(image_plane_shp)#
Look up node values and format text.
Example text: ‘ 42.1% (3.53GB) of 8.00GB’
- mmSolver.tools.createimageplane.lib.format_cache_cpu_used(image_plane_shp)#
Look up node values and format as text.
Example text: ‘ 23.1% (34.24 GB) of 240.00 GB’
- mmSolver.tools.createimageplane.lib.format_memory_gpu_available(image_plane_shp)#
Look up node values and format as text.
Example text: ‘GPU 8.00 GB’
- mmSolver.tools.createimageplane.lib.format_memory_cpu_available(image_plane_shp)#
Look up node values and format as text.
Example text: ‘CPU: 240.00 GB’