RE: [scripting] Overwriting the Hair PositionArray?

Date : Wed, 21 Nov 2007 08:09:10 -0500
To : <XSI(at)Softimage.COM>
From : "Vincent Fortin" <vincent.fortin(at)ubisoft.com>
Subject : RE: [scripting] Overwriting the Hair PositionArray?

Thank you for the enlightenment Stephen and Phil… and Stephen!

 

 


From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf Of Stephen Blair
Sent: Tuesday, November 20, 2007 5:05 PM
To: XSI(at)Softimage.COM
Subject: RE: [scripting] Overwriting the Hair PositionArray?

 

 

Outside of a scop, you can modify the PositionArray only on a frozen object.

 


From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf Of Stephen Blair
Sent: Tue 20 November 2007 4:53 PM
To: XSI(at)Softimage.COM
Subject: RE: [scripting] Overwriting the Hair PositionArray?


 
You can modify the PositionArray only on a frozen object.
Hair is generated so it cannot be frozen.

Try connecting a scripted op on the hair primitive (as input and output).

 


From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf Of Vincent Fortin
Sent: Tue 20 November 2007 4:41 PM
To: XSI(at)Softimage.COM
Subject: [scripting] Overwriting the Hair PositionArray?

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


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.