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
   
 
Input Port for the Constant Node
Posted: 24 June 2019 10:10 PM   [ Ignore ]  
Total Posts:  292
Joined  2017-09-24

Hi,

Is there a way to add an input port for the constant node?
My intended usage for it is to store data in the input port then disconnect.
Rather than manually copy-pasting values to the constant node.

Is there a better way of doing this?

Thank you

 Signature 

C4D Body Mechanics Rigs (Gumroad)  //    Website

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

Hi Ben,

Remember the cogwheel in the Attribute Manager?

====

Use a Null Object. Any information that it gets will be stored. Then feed its own value into it. Note that just leaving ports disconnected will be often seen as a zero value, and overwrites the given value!

There are memory nodes, but I found them tricky to use, and so they need too much attention. A Null comes with its own Attribute Manager parameter fields and is accessible without opening the Xpresso Manager.

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: 25 June 2019 09:56 AM   [ Ignore ]   [ # 2 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

P.S.: Please have a look here:

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

The First Xpresso tag holds all the User Data needed, to receive the Local Matrix from an object (that is in the object field and update any changes of that object with an update checkbox (click once, and it updates the entry, the update checkbox resets itself to off, as in do not update).

The Matrix can be adjusted or even animated if needed manually.

If the value is needed anywhere else, e.g., in a different XPresso Editor, just drag this Get_Matrix_Tag into the Xpresso Editor and get the output option from that node. The use of this should follow Priorities, as all Xpresso setups.

This Get_Matrix_Tag can be stored in the Object Manager> File> Save/Load Tag Presets.

If you rebuild it, it is crucial that the reset commands are in the XManagers’s last entry (as in lowest position), so it resets the update checkbox after it took the values.

The Update entry can be used as HUD, and can be set to be there only of the tag is active or permanently..

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: 25 June 2019 05:38 PM   [ Ignore ]   [ # 3 ]  
Total Posts:  292
Joined  2017-09-24

Hi Dr. Sassi,

That’s an interesting set-up you got there (i.e. storing data).

This could be in another thread (you be the judge), but may I ask if it’s possible to convert the “Update Checkbox” to an Update Button?
I tried adding the Update Button but it doesn’t appear as one of the user data in the object node.

Is there a way around this?

Thank you.

 Signature 

C4D Body Mechanics Rigs (Gumroad)  //    Website

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

Hi Ben,

Please check out the Integer options. I have set up an example here:

Scene file
https://www.amazon.com/clouddrive/share/2ycTCpSNlursOcqx1JdJ4qrDaGLKYNn0xkoXGVvOTlS

IS that what you are looking for?

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: 26 June 2019 02:11 AM   [ Ignore ]   [ # 5 ]  
Total Posts:  292
Joined  2017-09-24

Hi Dr. Sassi,

Thanks for the alternative, but not quite.
Currently, you have it as an integer data type. I’m looking for the data type as a button.

Is this possible?

 Signature 

C4D Body Mechanics Rigs (Gumroad)  //    Website

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

Ben, I’m not following here, what kind of data?

The “update button” just triggers the Condition Node to place a different set of information to the object. The whole Xpresso set up is the data button, if I try to understand your idea about.

Anyway, I have the feeling I miss something. Do you have an example?

(There is a User Data> Button. If you use one, open the Script-Log and press the button: This will give you the information it has. Anything else is then Python to add to it.)

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: 26 June 2019 05:25 PM   [ Ignore ]   [ # 7 ]  
Total Posts:  292
Joined  2017-09-24

Gotcha. I guess the Button Data type is not available in Expresso Node.
Used a Python Tag instead with the code from this thread.
http://www.plugincafe.com/forum/forum_posts.asp?TID=12759

 Signature 

C4D Body Mechanics Rigs (Gumroad)  //    Website

Profile
 
 
Posted: 26 June 2019 11:57 PM   [ Ignore ]   [ # 8 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

My best wishes for your set up, Ben.

 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