Skip to content

alijafargholi/prman_camera_projection_setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PrMan Projection Setup Tool - v2.0

The use of this tool is to setup the connection between the projection nodes in Maya.

ScreenShot

Setting up a camera projection in RfM has more complications, or at least more steps than usual workflow. It may cause some frustration for artists trying to get this to work, so I decided to make a small gui to do make this connections.

Tested for in Maya 2016 | RenderMan 20 and Maya 2017 RenderMan 21

For more information please CLICK HERE.

Default Installation

  1. Download the Package

  2. Unzip the downloaded file and rename it to prmanProjectionSetup.

  3. Then move the entire prmanProjectionSetup folder to the specified path:

    • Mac OS X
      • ~/Library/Preferences/Autodesk/maya/scripts
    • Linux
      • /maya/<version>/scripts
    • Windows
      • <drive>:\Documents and Settings\<username>\My Documents\maya\scripts
  4. Then in a new instance of Maya, open the script editor and run the following in a Python tab:

    from prmanProjectionSetup import cam_proj_setup_ui
    reload(cam_proj_setup_ui)
    cam_proj_setup_ui.create_ui()

Custom Installation

In case you don't have access to any of the above location, you can install this tool in a custom location. Following steps describe how to do it:

  1. Download the Package

  2. Unzip the downloaded file and rename it to prmanProjectionSetup.

  3. Then move the entire prmanProjectionSetup folder to any location you want

  4. Then in a new instance of Maya, open the script editor and run the following in a Python tab:

    import sys, os
    
    # Update this path to where you copied the package
    PATH_TO_PACKAGE = r"REPLACE/ME/WITH/PATH/TO/WHERE/YOU/COPIED/THE/PACKAGE"
    
    src_path = os.path.realpath(PATH_TO_PACKAGE)
    
    # Adding the location to system path
    if not src_path in sys.path:
       sys.path.append(src_path)
       print "added {} to the path\n".format(src_path)
    
    from prmanProjectionSetup import cam_proj_setup_ui
    reload(cam_proj_setup_ui)
    cam_proj_setup_ui.create_ui()

    Make sure you set the PATH_TO_PACKAGE to where you copied the rfmPrimVarTool package

    example:

    If the path to prmanProjectionSetup is this:

    /Users/Shared/Autodesk/maya/scripts/prmanProjectionSetup

    Then you need to set the PATH_TO_PACKAGE as follow:

    PATH_TO_PACKAGE = r"/Users/Shared/Autodesk/maya/scripts"


Note: Probably you don't want to run the script from the python tab every time you wan to open the tool, you could drag and drop the code from the python tab to a shell

About

RenderMan for Maya camera projection assistance

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages