PDA

View Full Version : PEN_CA wiring


foane
10-09-2006, 03:42 PM
Hey,

I was wondering if anybody could explain me how to correctly wire a position of a helper to a slider in the PEN_attribute holder 2. Do I have to work with -if- statements and XYZ coordinats? I dont have a clue on how to begin this atm.

any help would be appreciated,

Foane

Mahlon
10-09-2006, 04:09 PM
If I understand correctly what you want to do, you:

1. select the object which has the PEN modifier on it.
2. Right click and choose "wire parameters". Then choose 'modified object' from the pop up. The little arrow to the right of 'modified object' will open another menu listing your custom attributes. There's another arrow beside your custom attribute which will open yet another menu and you should be able to choose your slider from there. Just select the slider and then select the point object you want to wire it to and wire it up.

If you're unfamiliar with what I'm talking about concerning custom attribute stuff, let me know, and I'll try to explain in more detail. But basically, you have to set up your custom attributes with a script or with the parameter editor, then you wire it up as above.

Hope it helps.
Mahlon

foane
10-09-2006, 07:23 PM
thanks for the help mahlon,

but I already knew how to wire up something, the thing I wanted to find out was the equation I need to wire a slider of a pen_ca to a xyz coordinated point. How do I have to change the expression in both slots to have a solid wire-connection?

do I for example have to use a "if slider < 0 then relative(or something)(x,y,z) else......"

anyway, I hope you understand my problem now. if not, let me know...

thanks,

Foane

PEN
10-10-2006, 01:08 PM
I don't follow what you are after? What end result are you trying to get? Your question sounds like you just want to know how to wire something but you are then asking about if statements and positions. Again, please explain in detail what the end result you are trying to get is.

foane
10-10-2006, 02:44 PM
PEN,

take for example a box that is on the origin of the world (0,0,0) and a helper with a PEN_attribute holder2 with one slider. How can I set up the wiring so that when I pull the slider the box changes its position to for example (12,24,120)?

the reason I'm not using the reaction manager is because the object in my scene is already a component of a reaction (his X_Position).

so in fact my question could also be: is it possible that an object is part of a Reaction AND wiring? and if yes, is it possible to put the both of them on the same Position XYZ controller?

well, maybe its just easier to put the three things in one wire so that the X_Pos of the object drives for example the percentage of a path constraint AND is wired to a CA (and the wiring should be 2 ways).

my apologies if this is somewhat confusing, I'm asking several independant questions here but I hope you (or someone else ) could give me some input regarding these subjects.


cheers,


Foane

foane
10-10-2006, 02:50 PM
in fact I've just found a better way to explain my problem

http://forums.cgsociety.org/showthread.php?t=260019

in the link above, chinwagon has his controllers set up so the path constraints react on the X_Positions of the controllers and after that he 'linked' the two together with a Position Constraint so the controller follows the helper that is path constrained. Now, he also has put his controllers in a wire with some CA's in the PEN_Attribute Holder 2. And this is actually the exact same thing I'm after...

CGTalk Moderation
10-10-2006, 02:50 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.