PDA

View Full Version : delete something when another is deleted


r4inm4ker
06-06-2008, 03:38 AM
Hi,
is there any way to delete an object (i.e. a cube) when another object (i.e. a camera) is deleted ?
I don't want to use parenting for this purpose (since parenting has other problem in my case),or scripJob. I wonder if there's attribute from cube that is connected to camera, so that deleting camera automatically deletes cube.
An example would be like when you create nurbs cube, there's an input node called makeNurbCube, and if you delete the cube, this makeNurbCube is also deleted.
any idea?


Jefri.

GiantG
06-06-2008, 07:31 AM
Hi...

if you want to have something interactive here you have to use scriptjobs or expressions.
But with expressions you have to scrub through the timeline to activate it.
In your example you are deleting the creation node. That a special Case of relationship and therefore working.
I would make scriptjob that listens on "deleteAttribute" of the cube even of the cube creation node and when this attribute is deleted it deletes your camera.


cheerz...

r4inm4ker
06-09-2008, 05:54 AM
GiantG : Thx for your input.
In the end, i just use parenting since i've solved the problem of using it :)

CGTalk Moderation
06-09-2008, 05:54 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.