Onectin

onectin [AT] onectin.fr
Navigation Menu

Slack (TV commercial)

Slack (TV commercial)

Posted on 18/01/2016 |

Hello, here is the last project I worked on, it’s a commercial for Slack, by Nexus. I was fur artist.

Read More

Messy goes to Okido

Messy goes to Okido

Posted on 20/09/2015 |

Hello, I’ve been working on this TV show for kids, « Messy Goes to Okido« , at Doodle Productions, for the BBC. I did some rigging and was assistant technical director....

Read More

Maxscript snippets

Maxscript snippets

Posted on 06/06/2015 |

Here are some short and simple maxscript snippets that I use quite often. They are very simple and there’s probably a cleaner way to do what they do, but who knows, it can be useful for someone… Replace a map by another In this example, the code collects all the Normal_Bump maps, to replace them by a VRayNormalMap one, while keeping the same bitmap input. _mapArray = getClassInstances Normal_Bump for i in _mapArray do ( _bitmapNode = i.normal_map _newNode = VRayNormalMap() _newNode.normal_map = _bitmapNode replaceinstances i _newNode ) 123456789 _mapArray = getClassInstances Normal_Bumpfor i in _mapArray do(    _bitmapNode = i.normal_map    _newNode = VRayNormalMap()    _newNode.normal_map = _bitmapNode            replaceinstances i _newNode)   Get all the node’s dependances This code get all nodes that have speficic node linked to. The node can be a mesh, a map, a light… Here it collects all the Normal_Bump maps, and collects all the VRayMtl material linked to them. _mapArray = getClassInstances Normal_Bump _matCollection = #() for i in _mapArray do ( _matCollection = for u in (refs.dependents i) where (classof u == VRayMtl) collect u ) 123456 _mapArray = getClassInstances Normal_Bump_matCollection = #()for i in _mapArray do(    _matCollection = for u in (refs.dependents i) where (classof u == VRayMtl) collect u)   Reload PointCache This snippet reloads the pointcache modifier for a given array of objects. function reloadPointcache _selection = ( max modify mode for i=1 to _selection.count do ( _pcModifier = _selection[i].modifiers[#PointCache] if _pcModifier != undefined do ( modpanel.setCurrentObject _pcModifier cacheOps.reload _pcModifier ) ) ) reloadPointcache (selection as array) 1234567891011121314 function reloadPointcache _selection =(    max modify mode    for i=1 to _selection.count do    (        _pcModifier = _selection[i].modifiers[#PointCache]        if _pcModifier != undefined do        (            modpanel.setCurrentObject _pcModifier            cacheOps.reload _pcModifier        )    ))reloadPointcache (selection as array)   Get modifier’s instances This one gives you all the objects that use an instance of a specified modifier from your selection. For example, you want to get all the objects sharing a twist modifier, just select one of them and type:  getInstanceMod(twist). function getInstanceMod modType = ( mySelection = selection[1] myBool = false myMod = getClassInstances modType for i in myMod do ( myObj =(refs.dependentNodes i) myResult = #() for u in myObj do ( append myResult u if u == mySelection do myBool = true ) if...

Read More

Matlib Manager 0.2a

Matlib Manager 0.2a

Posted on 21/01/2015 |

The first stable release of the Matlib Manager is out ! This script allows to save a matlib from a scene or a selection, and to save which material goes with which objects (name-based). Then it can be easily/automatically  reapplied. It has been initially created for the Cosmic Love production, but this brand new version have been entirely recoded, that’s why it’s an alpha version: I’ve done a massive debugging, but I’m waiting for feedbacks to set it officially to a « stable status. Here is the dedicated page, with usage and installation instructions: onectin.fr/matlib-manager. You can also check my Github page.            ...

Read More