Seiten

Freitag, 13. Februar 2015

Project Uvs through camera in the shader otl


Houdini Uv Camera projection otl from roderick friedrich on Vimeo.
I build a simple otl, based on information from these 2 forum threads.

http://www.sidefx.com/01
http://www.sidefx.com/02

with this node you can Project Uvs through a selected Camera direct in the Shader.

download otl

Dienstag, 16. September 2014

Montag, 30. September 2013

bake world position to vertex color

This script bake the vertex position in world space into the vertex color. Just select the objects and run the script
import maya.cmds as cmds
import maya.OpenMaya as om


sel = om.MSelectionList()
om.MGlobal.getActiveSelectionList(sel)

vertexColorList = om.MColorArray()
vertexIndexList = om.MIntArray()

dagPath = om.MDagPath()
component = om.MObject()


iter = om.MItSelectionList(sel)
while not iter.isDone():
    iter.getDagPath( dagPath, component )
    meshFn = om.MFnMesh(dagPath)
    meshIter = om.MItMeshVertex( dagPath, component )
    index = 0
    while not meshIter.isDone():
        
        point = meshIter.position(om.MSpace.kWorld)
        color = om.MColor(point.x,point.y,point.z,1)
        vertexColorList.append(color)
        vertexIndexList.append(index)
        index = index +1 
        meshIter.next()
        
    
    meshFn.setVertexColors(vertexColorList,vertexIndexList )    
    iter.next()
    

author: Jan Lachauer

Mittwoch, 29. August 2012

3 Color Volume shader


A simple Fog Shader.
3 color transition between startZ endZ and endY


















download_RF_fog.sl

Freitag, 13. Juli 2012

Maya Messanger


























this 2 scripts allow to send and read messages without leaving maya.
Its possible to write notes for a single shot and read only the messages
for this shot.
Its also possible to mark messages as read, so you just see the new messages.

So every teammember have to put the scripts in his  Users\User\Documents\maya\2012-x64\scripts
or another script directory.
 In both Scripts:
 Fill the Variables mySelf, teamMembers, inputStorePath
mySelf and teamMembers with only 2 characters, if you have 2 Persons with the same initials
use of capital and small initial letters
Fill the Input StorePath with a Path (we use it with dropbox folder), anFtp server mounted as a drive, or a FileServer
end the path with /

like this:
teamMembers =('RF','NL','MH','CB','PK')
mySelf = 'RF'
Path='C:/Users/RF/Dropbox/Hermit/Software/TXTmessages/'

to Use the scripts:
execute the rf_exeRead.py or rf_exeSend.py script for wrting or reading.
You can create shelf buttons with this two scripts.

all Scripts together in a zip archiv
4 scripts in a zip folder

seperated Scripts:
https://dl.dropbox.com/u/34893475/rf_readMessage.py
https://dl.dropbox.com/u/34893475/rf_sendMessage.py
https://dl.dropbox.com/u/34893475/rf_exeRead.py
https://dl.dropbox.com/u/34893475/rf_exeSend.py


Sonntag, 29. April 2012

create playblast in h264 mov

This script creates a playblast and auto convert it as a h264 mov
Nuke and Quicktime have to be installed on the same Pc.
The Script works only on Windows.
The Quicktime have a text overlay with the scenename and the actuel Frame .















Save the script in your scripts directory.
copy  this to your script editor.
replace the parameters and execute.


  1. #    This Scripts works only with Nuke on the same PC
  2. #
  3. #    Export a PlayBlast with Handles and Convert the Avi to a h264 mov File
  4. #        
  5. #    function createH264PB(path to the nuke.exe, framerate, handles,width, hight)
  6. #    if the framerange doesnt match with your scene framerate ,the script will not run
  7. #
  8. #    the mov is in the images folder
  9.  
  10. import rf_playblast
  11. rf_playblast.createH264PB("C:\Program Files\Nuke6.3v1\Nuke6.3.exe",25,10,1280,720)

Download:
http://dl.dropbox.com/u/34893475/rf_playblast.py

Freitag, 16. März 2012

jl_import_image_plane

This python script lets you pick an image file and creates a polyplane with it as texture.


Type "doImport()" to import the image.

http://pastebin.com/9Zg9hfJy