How to convert value type ?

 
 
 
Posted by:SaiZyca
Data created:12 January 2010

Hi,Marsel

Is there any way to convert value type by zookeeper node?

for example, a point3 value convert to position XYZ value ,and let a object position on a spline vertex.

Thanks.


Attached Files:
Image 1

 

 

Hello Sai,

I don't think there's a direct way to do this. One way I can think of is by creating a float expression controller, assigning Point3 as a variable and then extracting the x, y, z values from it (ie. X.x, X.y, X.z) and wiring them into the x, y, z slots of the position controller. I haven't tried if this actually works as its from the top of my head.

Marsel Khadiyev (Software Developer, EPHERE Inc.)

Yes,I can use expression controller to do that,and I use it before I ask this question ;-D

But it's not easy when I have a lot parameter need be convert...

So ... is that possible write some plugin or something for Zookeeper to do that ?

 

and I found if I link a value to script controller, it can only link to object, not a track or constant ,

I need to write X.value ( the Zookeeper's default variable ) in script to get the value , it's a little bad...

 

Any way,Zookeeper is rock ~

 

 

Yes,I can use expression controller to do that,and I use it before I ask this question ;-D But it's not easy when I have a lot parameter need be convert...

Yeah I understand your frustration. 3dsmax seems to be missing a lot of 'common sense' controllers which would make life a lot easier.

So ... is that possible write some plugin or something for Zookeeper to do that ?

The bad thing about extra plugins is that they would require zookeeper to be present in the scene, and if you take it would it would break the scene (since it'd rely on custom controllers). We are planning something like this for the future (the 'common sense' controllers I mentioned) but for now the longer way seems to be the best one.

Thanks for your input!

Marsel Khadiyev (Software Developer, EPHERE Inc.)

I understand that zookeeper want to preserve the compatibility with max file , so it missing something like math node etc.

I will try write some script to do that if it's possible.

Thanks for your answer!