  | | | Associated Models Script | Associated Models Script 2004-03-08 - By IOMEDIA.SoftXSI
Back I have a scene with 63 point lights. I want to write a script that will take a selected model and automatically put it in the Associated Models group under each of those point lights. All the lights are named consecutively from "Point" to "Point63". The script that I tried to use is: SelectObj "cube"
CopyPaste "cube", , "Point*.light.Associated Models", 1
When I run it I get the the following script error:
'ERROR : "2001-EDIT-CopyPaste - Argument 2 is invalid - [line 2]"
Does anyone have a script that will do this?
Thanks
-Eugene
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD><TITLE>Message</TITLE> <META http-equiv=Content-Type content="text/html; charset=us-ascii"> <META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD> <BODY> <DIV><SPAN class=623193002-09032004><FONT face=Arial size=2>I have a scene with 63 point lights. I want to write a script that will take a selected model and automatically put it in the Associated Models group under each of those point lights. All the lights are named consecutively from "Point" to "Point63". The script that I tried to use is:</FONT></SPAN></DIV> <DIV> <DIV><SPAN class=623193002-09032004><FONT face=Arial size=2></FONT></SPAN> </DIV> <DIV><SPAN class=623193002-09032004> <P><FONT color=#0000ff size=2>SelectObj "cube"</FONT></P> <P><FONT color=#0000ff size=2>CopyPaste "cube", , "Point*.light.Associated Models", 1</FONT></P> <P><SPAN class=623193002-09032004><FONT face=Arial size=2>When I run it I get the the following script error:</FONT></SPAN></P><SPAN class=623193002-09032004><FONT color=#0000ff> <P><FONT size=2>'ERROR : "2001-EDIT-CopyPaste - Argument 2 is invalid - [line 2]"</FONT></P> <P><SPAN class=623193002-09032004><FONT face=Arial color=#000000 size=2>Does anyone have a script that will do this? </FONT></SPAN></P> <P><SPAN class=623193002-09032004><FONT face=Arial color=#000000 size=2>Thanks</FONT></SPAN></P> <P><SPAN class=623193002-09032004><FONT face=Arial color=#000000 size=2>-Eugene</FONT></SPAN></P></FONT></SPAN></SPAN></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV></DIV> <DIV align=left><IMG alt="" hspace=0 src="cid:202551603@(protected)" align=baseline border=0></DIV> <DIV> </DIV></BODY></HTML>
|
|
|