POV-Ray : Newsgroups : povray.advanced-users : POVRay referencing object rotation values : Re: POVRay referencing object rotation values Server Time
16 May 2024 16:47:12 EDT (-0400)
  Re: POVRay referencing object rotation values  
From: Le Forgeron
Date: 16 Mar 2015 12:24:29
Message: <550703bd$1@news.povray.org>
Le 16/03/2015 15:45, bublible a écrit :
> How can I reference an object in POVRay? I mean I want to rotate another object
> on axis X by another object's rotation value of its Z axis.
> 
> I am thinking about something like this (this of course does not work, just to
> show you what I mean):
> 
> // lets say before I #declared two objects named ObjA & ObjB
> Object {
>     ObjA
>     rotate <ObjB.rotation.z, 0, 0>
> }
> 
> Any suggestions, please?
> 
> 
You can't, as you intended at least. Access to object's property is not
possible in read mode so far.

When declaring ObjB, you could also declare a variable to hold the
rotation around Z used on B, and use that variable later on A.


Post a reply to this message

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