Itoo Software Forum

Author Topic: Railclone objects cannot be clone via MAXscript ,is it right?  (Read 54 times)

cc8boy

  • Sr. Member
  • ****
  • Posts: 276
  • I'll do my best.Welcome to www.c7design.cn .
    • C7design
Railclone objects cannot be clone via MAXscript ,is it right?
« on: November 13, 2017, 05:30:31 AM »
Railclone objects cannot be clone via MAXscript ,is it right?
O=#($OWall_DownL_RC,$'OWall_RC_001')
maxops.clonenodes O clonetype:#copy newnodes:&NN

I got an error called 'system unexpection'. No new objects generate. What's wrong with my script ? What's the best way to clone the railclone objects via MAXscript ?
We are working hard in virtual effects in 3DSMAX. Welcome to our website in China.

Rokas

  • Sr. Member
  • ****
  • Posts: 401
Re: Railclone objects cannot be clone via MAXscript ,is it right?
« Reply #1 on: November 13, 2017, 08:33:23 AM »
I use this code:
Code: [Select]
maxOps.cloneNodes $ cloneType:#copy newNodes:&nnl

PU1548

  • Newbie
  • *
  • Posts: 15
Re: Railclone objects cannot be clone via MAXscript ,is it right?
« Reply #2 on: November 13, 2017, 10:52:31 AM »
A easy way  to clone is

Code: [Select]
mynewObject = copy  $OldRCobjectname   

cc8boy

  • Sr. Member
  • ****
  • Posts: 276
  • I'll do my best.Welcome to www.c7design.cn .
    • C7design
Re: Railclone objects cannot be clone via MAXscript ,is it right?
« Reply #3 on: November 13, 2017, 01:18:01 PM »
For some reasons I mustn't use the selection array such as "$","selection","$name". And the 'copy' command can't be used in my script because of the hierarchy.
Thanks for your replies.
We are working hard in virtual effects in 3DSMAX. Welcome to our website in China.

Rokas

  • Sr. Member
  • ****
  • Posts: 401
Re: Railclone objects cannot be clone via MAXscript ,is it right?
« Reply #4 on: November 13, 2017, 01:26:39 PM »
O=#($OWall_DownL_RC,$'OWall_RC_001')
maxops.clonenodes O[1] clonetype:#copy newnodes:&NN

should work