Re: [scripting] Overwriting the Hair PositionArray?

Date : Wed, 21 Nov 2007 08:30:06 +1030
To : XSI(at)Softimage.COM
From : philb <philbarrenger(at)gmail.com>
Subject : Re: [scripting] Overwriting the Hair PositionArray?
Hey Vincent,
It used to be only possible from a sripted Op (prob a compiled op too but I have never tried). At one point we were using scops to mirror styles and then freezing them. Beware though that we always found it extremely flakey. There was a specific order in which things needed to be done otherwise the hair would start to wig out (pun intended) when you started grooming. This was 4.3 so things may have improved but I'd approach it with trepidation.

cheers,
phil




On 11/21/07, Vincent Fortin < vincent.fortin(at)ubisoft.com> wrote:

Is it possible?

I get an "access denied" whatever I try…

 

// JSCRIPT

var oObj = selection(0);

var aPos = oObj.ActivePrimitive.Geometry.Points.PositionArray.toArray();

FreezeObj(oObj);

oObj.ActivePrimitive.Geometry.Points.PositionArray = aPos;

 

Thanks,

Vincent




--
phil barrenger
philbarrenger(at)gmail.com
http://www.users.on.net/~philbarrenger/

Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.