POV-Ray : Newsgroups : povray.general : printing object's identifier : printing object's identifier Server Time
5 May 2024 04:51:42 EDT (-0400)
  printing object's identifier  
From: jr
Date: 16 Mar 2016 18:35:38
Message: <56e9dfba$1@news.povray.org>
hi,

I'm trying to print, from a macro, the declared name of an object passed
to it, ie.

#declare Tobj = torus { ... };

object { Tobj }

mymacro(Tobj)

and in the macro (where the parameter is ObjId)

#debug concat("object's name:", ObjId)

that doesn't work, POV complains "expected string, oid found instead",
so is there a way to get the name string ('Tobj') from the ObjId?

thank you.

jr.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.