  | | | Scripting help - PathCns | Scripting help - PathCns 2005-06-01 - By Dan Yargici
Back Demian,
I would also recommend Helge's scripting series availble from 3dTutorial.com - it's really pushed me along and I've only finished 2 chapters. Really clear explanations and totally OM oriented.
Now I finally understand why everyone suggests using Jscript over VBscript, I'm finding it waaaaay nicer.
I decided to try and convert your script to jscript OM code, I'll polish it up and post it tomorrow (I'd like to get some crits from the brains here too as I'm sure I'm doing some things a bit shabbily.... but I did manange to make it %99.9 OM)
DAN
Juan Brockhaus wrote:
> Hi Demian, > > I've added a modified version of your script. it opens up the PPG of > all pathcns in one multi-PPG. > as a tip, I would suggest you to learn about the object mode, which is > much faster in scripting. > you could speed up your script by feeding arrays with your loop and do > a 'multi' path constrain and then set the different values with the > object mode. > > cheers, > > Juan > > > > > > -- --Original Message-- -- > *From:* Demian Zarins [mailto:demian.zarins@(protected)] > *Sent:* 01 June 2005 13:39 > *To:* xsi@(protected) > *Subject:* Scripting help - PathCns > > > I�m in need of some scripting help here :) I�m not very good at it so > step by step help would be appreciated. > > In my script (se attached script). I�m trying to make a more > versatile duplicate/animation to path > setup. What I would like to have is the possibility to have the > PathCns PPG come up at the > end of the script so that I can set these properties without > hardcoding it as I do now. > > > SetValue oSelection(i).Name + > ".kine.pathcns.affbyori1", True > SetValue oSelection(i).Name + > ".kine.pathcns.tangent", True > SetValue oSelection(i).Name + > ".kine.pathcns.dirx", -1 > SetValue oSelection(i).Name + > ".kine.pathcns.diry", 0 > SetValue oSelection(i).Name + > ".kine.pathcns.dirz", 0 > SetValue oSelection(i).Name + > ".kine.pathcns.upvct_active", True > SetValue oSelection(i).Name + > ".kine.pathcns.roll", 45 > > > Maybe there is a built in way of doing this, in that case please > share it with me :) > If anyone can set me in the right direction I would be thankfull. > > TIA > > Demian > > > > > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----- -- > D E M I A N Z A R I N S > Projektledare > S V T -> V�xthuset - The Green House > Sveriges Television > Oxenstiernsg 26 > 105 10 STOCKHOLM > Phone: +46 8 784 3312 ->mobile:+46 709-951984 > > > -- > No virus found in this incoming message. > Checked by AVG Anti-Virus. > Version: 7.0.322 / Virus Database: 267.3.3 - Release Date: 31/05/2005 > > > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.322 / Virus Database: 267.3.3 - Release Date: 31/05/2005 >
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|
 |