Execute script on object without having to select

On 05/05/2017 at 13:56, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   R17 
Platform:   Windows  ;   
Language(s) :   C.O.F.F.E.E  ;   XPRESSO  ;


Quick question how do I run a script on a object without having to select the object? Already tried FindObject("objectname"); but I dont think I used it right. Another question.
After the script selects the object I want it to 'Restore Selection' through a 'Edge Selection Tag'. Hope someone can help me.


On 06/05/2017 at 07:18, xxxxxxxx wrote:

Welcome to the forums,

Is there a reason you are asking for COFFEE help rather than Python?
You will hit road blocks very quickly using COFFEE.
Python is a much better supported language in C4D if you are using R17.


On 12/05/2017 at 04:02, xxxxxxxx wrote:

Hello and welcome,

I guess your question was already answered on the C4D Cafe. For the future, please avoid threads across multiple forums so that nobody invests time in answering solved issues.

best wishes,