A new version of Cineversity has been launched. This legacy site and its tutorials will remain accessible for a limited transition period

Visit the New Cineversity
   
 
Two Controls but One Driver
Posted: 27 June 2019 01:58 PM   [ Ignore ]  
Total Posts:  292
Joined  2017-09-24

Hi,

I have two controls with Visibility (“Off/On”) that I’m trying to drive a single object’s visibility.
If it’s only one control, it’s a straight forward Xpresso Connection. However, I am having a problem to figure out how to do it with two or three controls.

Here’s the scenario what I am after

Beginning:
1) Control A (On)
2) Control B (On)

# Result
Object Visibility (On)

Changed to
1) Control A (On)
2) Control B (Off) # Changed

# Result
Object Visibility (Off)

Changed to
1) Control A (On) # Reclick the On
2) Control B (Off)

# Result
Object Visibility (On)

I’m not sure if this is possible, but hopefully, it is.

You can see an illustration file here:
https://www.dropbox.com/s/gp0zcjotigirbvo/c4d119_two_visibility_controls.c4d?dl=0

Thank you for looking at my problem.

 Signature 

C4D Body Mechanics Rigs (Gumroad)  //    Website

Profile
 
 
Posted: 28 June 2019 12:52 AM   [ Ignore ]   [ # 1 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

Hi Ben,

I had some success with the FlipFlop node, but there was a single case where it didn’t work.

I really would advise to check this out with the Python Gurus.
I think it could be like placing each change in a “List” (or similar) and then applying the last entry to the object’s visibility. Lists work even in the Xpresso Python Node.
But as usual, I try NOT to do what the Developer Support Forum does so much better.
https://plugincafe.maxon.net

(I really wish they all would write a TD-handbook about Cinema 4d’s Python! Everyone a short chapter of his/her liking, quick and straightforward. I would even structure it first and find a publisher. )

All the best

 Signature 

Dr. Sassi V. Sassmannshausen Ph.D.
Cinema 4D Mentor since 2004
Maxon Master Trainer, VES, DCS

Photography For C4D Artists: 200 Free Tutorials.
https://www.youtube.com/user/DrSassiLA/playlists

NEW:

NEW: Cineversity [CV4]

Profile
 
 
Posted: 28 June 2019 02:09 AM   [ Ignore ]   [ # 2 ]  
Total Posts:  292
Joined  2017-09-24

No worries Sassi.

Thanks for the attempt and response!

 Signature 

C4D Body Mechanics Rigs (Gumroad)  //    Website

Profile
 
 
Posted: 28 June 2019 02:26 AM   [ Ignore ]   [ # 3 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

Ben,

One of the problems that I found was that clicking on the green object for a second cycle, was interpreted in switching the target off. As long as there is no time stamp or something like that, it becomes difficult.

Putting the last change into the list, and outputting the last entry in the list, seems to be the way to go. Since it is a manual entry, this list will not grow too large.

My best wishes

 Signature 

Dr. Sassi V. Sassmannshausen Ph.D.
Cinema 4D Mentor since 2004
Maxon Master Trainer, VES, DCS

Photography For C4D Artists: 200 Free Tutorials.
https://www.youtube.com/user/DrSassiLA/playlists

NEW:

NEW: Cineversity [CV4]

Profile
 
 
Posted: 28 June 2019 03:13 AM   [ Ignore ]   [ # 4 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

P.S.:

Perhaps this might work for you

Scene file
https://www.amazon.com/clouddrive/share/hb8ZU6aN7uJ5SyN1H0OZmLJjq8pXhvyLZyFzdqeebDc

The Torus (target object) will be visible already when the “green; red; gray; green” clicking cycle is at gray. You requested that it shows up at green. Perhaps that is working anyway.

I have clicked a few minutes to cover all (?) possible sequences, including a double cycle of one object’s visibility, anyway, I might have missed one. (Edit: I found one case where it failed, so I guess a few of the cases needs a second cycle. /edit)

Cheers

 Signature 

Dr. Sassi V. Sassmannshausen Ph.D.
Cinema 4D Mentor since 2004
Maxon Master Trainer, VES, DCS

Photography For C4D Artists: 200 Free Tutorials.
https://www.youtube.com/user/DrSassiLA/playlists

NEW:

NEW: Cineversity [CV4]

Profile
 
 
Posted: 28 June 2019 04:24 PM   [ Ignore ]   [ # 5 ]  
Total Posts:  292
Joined  2017-09-24

Thanks for the response.

Is there a particular reason why you choose to drive the visibility of another object’s visibility rather than the illustration file I presented?

Anyhow, the file provided only works if its “Unhide” Mode (Green) and not on the “Hide” mode (Red). I need both.

Anyway, no worries about this one. I guess it’s not possible at the moment.

 Signature 

C4D Body Mechanics Rigs (Gumroad)  //    Website

Profile
 
 
Posted: 29 June 2019 12:27 AM   [ Ignore ]   [ # 6 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

Hi Ben,

No reason, other than I found it more appropriate for my work. It made visually more sense to me.

I have spent a lot of time trying to overcome the limitations.

Perhaps if you share for what you need this, we can discuss more.

This needs to be done in Python.

My best wishes.

 Signature 

Dr. Sassi V. Sassmannshausen Ph.D.
Cinema 4D Mentor since 2004
Maxon Master Trainer, VES, DCS

Photography For C4D Artists: 200 Free Tutorials.
https://www.youtube.com/user/DrSassiLA/playlists

NEW:

NEW: Cineversity [CV4]

Profile