Mailing List
Home
Forum Home
Softimage
Carrara
trueSpace
Dir3d-l
Maya - a powerful 3D animation and visual effects software
Macromedia Flash Development
Subjects
Cameras
scaleDown command
black out solved
Aircraft Tutorial
Mathematical XYZ ?
Its done This vs That
Its done first week
recommendations for screen video captures?
3DExplorer "Oddity "
New Director
ProTeam renewals
Fuel 's new websites (X post)
Blue peter create a make toy
targeting groups question
XPost: Shockwave 3D game ( sort of )
RES: RES: RES: Fish Modeling
Emitting particles from object intersection
Fuel 's new websites (X post)
Texturing
Big Break Contest Videos
New Plugins
Models and Texture on my updated site
Error Installing Patch tS6 6
Plasma?
Looking for Inspiration
Weird EMail Q
It 's done first week ?
Cherry not cranberry
New game
Camera Animation Problem
Particle plugins?
 
Associated Models Script

Associated Models Script

2004-03-08       - By IOMEDIA.SoftXSI

 Back
Reply:     1     2     3  

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&nbsp;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>&nbsp;</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>&nbsp;</DIV></DIV>
<DIV align=left><IMG alt="" hspace=0 src="cid:202551603@(protected)"
align=baseline border=0></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>