It's a command because only the application can run the full extent of
operations required to duplicate an object within the scene entirely.

People have grown a dysfunctional notion of object model VS command as if
they are just mutually exclusive alternatives. The real difference is
between using the Application to do things for you, with all its
all-comprehensive commands offered, vs dealing with the individual
abstractions of objects.

You COULD do it all without running a single command, but you will need to
implement by the various objects every facet of that command that you are
interested in.
So if it's just the geo you want, what Matt listed is plenty fine, but if
you also want clusters, properties, constraints and so on to be duplicated
then, as no single object wraps the lot, you will need to take care of
those yourself.
Many commands are actually just scripts that do exactly that, deal with
multiple objects synchronously or sequentially to give completeness to
those operations.

When things span complex connections across the scene graph, it usually
becomes increasingly laborious to use pure OOP through the API's objects
with no commands to do it. You are largely duplicating work the devs
already did when implementing those commands.

On Thu, Feb 21, 2013 at 1:47 PM, Byungchul Kang <[email protected]> wrote:

> hm.... only Native Command?
> Okay, Thanks for you all.
>
>
> 2013/2/21 Eric Thivierge <[email protected]>
>
>> There is only the xsi.Duplicate() command I believe. Unless you want to
>> create an empty polymesh and set the topo via ICE.
>>
>> --------------------------------------------
>> Eric Thivierge
>> http://www.ethivierge.com
>>
>>
>> On Wed, Feb 20, 2013 at 9:37 PM, Byungchul Kang <[email protected]> wrote:
>>
>>> Hello, List
>>>
>>> I want to copy a object(Polymsh, pointcloud .. ) through ObjectModel
>>> Script with Python. not CopyPaste command.
>>> any idea?
>>>
>>> Thanks
>>> Kang
>>>
>>>
>>> --
>>> *Byungchul Kang* | MBC CG TEAM [http://imbc.com]
>>> http://cgndev.com
>>>
>>
>>
>
>
> --
> *Byungchul Kang* | MBC CG TEAM [http://imbc.com]
> http://cgndev.com
>



-- 
Our users will know fear and cower before our software! Ship it! Ship it
and let them flee like the dogs they are!

Reply via email to