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?
 
making it a child of the root by scripting

making it a child of the root by scripting

2004-04-01       - By Carl Callewaert

 Back
Reply:     1     2     3     4  

cool ;-) thx, this made it all working. Even better and faster ;-)

carl

-- --Original Message-- --
From: Bradley Gabe [mailto:bgabe@(protected)]
Sent: Thursday, April 01, 2004 4:14 PM
To: XSI@(protected)
Subject: Re: making it a child of the root by scripting


Look at the Duplicate function in the online scripting docs. There
should be an argument parameter in there that allows you to set the parent.

Duplicate([InputObjs], [NbItems], [History], [Hierarchy], [Grouping],
[Properties], [Animation], [Constraints], [Selection])


The Hierarchy argument can be set to no parent during duplication.

-Brad


>in this script I try to achieve to duplicate a curve which
>is a element under a model which works. How can I make that
>the duplicate curve because an child just under the root
>and not under the model?
>
>sub model(in_obj)
>
>dim sel
>   Set sel = GetValue("SelectionList")
>   set oRoot = Application.ActiveProject.ActiveScene.Root
>   set myObj = oRoot.FindChild(in_obj)
>   SelectObj myObj.model & ".Curve", "BRANCH"
>Duplicate myObj.model & ".Curve" , 2, 1, 1, 0, 0, 1, 0, 1
>FreezeObj
>SelectObj myObj.model & ".Curve", "BRANCH"
>end sub
>---
>Unsubscribe? Mail Majordomo@(protected) with the following text in body:
>unsubscribe xsi
>
>  
>

--
Bradley R. Gabe
Industrial Light & Magic



---
Unsubscribe? Mail Majordomo@(protected) with the following text in body:
unsubscribe xsi
---
Unsubscribe? Mail Majordomo@(protected) with the following text in body:
unsubscribe xsi