ScriptSpot

Forum topic · General Scripting

Changing Object Data on Creation

By VK · 2010-05-13

Description

Hello,

I started to Script some days ago, and already made a small script.
But I have some problems, I want it to be possible that if there's created a new Object, f.e. a box, which isn't created by the script, but by the user, that it f.e. change its Material or wirecolor automatic. Is this possible and how? I googled and found nothing about this.

I hope you can help me

Comments (2)

VK · 2010-05-19

Thank you, that helped me a lot.

Anubis · 2010-05-18

Search in the help for "General Event Callback Mechanism" topic.

-- for example
callbacks.addScript #nodeCreated "ToDoFunction()" id:#addMtl