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
   
 
Candle stick graph for stocks
Posted: 21 August 2017 01:00 PM   [ Ignore ]  
Total Posts:  60
Joined  2017-01-05

I’m trying to figure out a way to creat candle stick graphs like this:
http://blogs.sas.com/content/graphicallyspeaking/files/2014/09/CandleStick2.png

cloners got close with turbulence on y pos and y scale, but they don’t always overlap.  I found this also:
https://www.behance.net/gallery/11334149/3D-Stock-Market-Candlestick-Trading-Chart

This has animation only on the active “day”, which is pretty fascinating.

What techniques should i explore to create something like this?
Thanks!

Profile
 
 
Posted: 21 August 2017 01:58 PM   [ Ignore ]   [ # 1 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

Hi SethO,

The animation should be based on real values or just the aesthetic of them. “Open” as well as “close” for the body, and high as well as low for the “shadow” the thin line should follow in a timely fashion or just aesthetically?

A little brainstorming here, in other words, not tested:

The first thing that comes to mind, and perhaps more simplified than you want, is to just move clones up and down and stretch them, via Effectors and falloff to freeze them to get the “Body”, while using a MoGraph Tracer to the get the “Shadow” with the spline from the Tracer.

Perhaps a XPresso, with a list of four point splines, while doing the math on them for a certain amount of frames, then move to the next.
Scene File
https://www.amazon.com/clouddrive/share/pOstJfMrLFsGvYPwDhQqcTTWSiB8MSqdynEaIPFTDvd

Or just four Splines which look like four waves from left to right, and mark with a point each of the “Body/Shadow”  combinations.

Perhaps a dynamic solution, or a “Collision Deformer” based animation

Of course Python sounds like the way to go.

.

Let me know what base the animation has, numbers of free motion Graphics, and if the statistical terms like open, close and low and high must be strictly followed.

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: 21 August 2017 04:03 PM   [ Ignore ]   [ # 2 ]  
Total Posts:  60
Joined  2017-01-05

yeah, open, close, high and low, those work great!

its just going to be used as an overlay to communicate the fluctuations in the market.  id like it to be open ended so i can scrub as long or short as they want, maybe remapping the frame rate in post.  no real data is being parsed, so either turbulence or vibrate object like you have is fantastic.

i recall xpresso nodes cant create objects.  i see python tags, but im not sure if those are what i need to create objects.

Profile
 
 
Posted: 21 August 2017 04:26 PM   [ Ignore ]   [ # 3 ]  
Total Posts:  60
Joined  2017-01-05

Ok idea:

what if i cloner out the number of “days” that i need, and use time to choose the index.  get information from that index, and move the y position of that object, and scale the height to the difference.  the starting object can have a unit of 1, so giving a y scale of the difference will give me the absolute height needed. 

question:  how can i apply that math difference back to the cloner object per index?  er, what xpresso node should i use to apply transform information to a single clone?

Profile
 
 
Posted: 21 August 2017 05:24 PM   [ Ignore ]   [ # 4 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

SethO,

There is no XPresso node that can supply information directly to a single clone which is part of a group of clones. Hence the Python Effector is needed. Which is pretty much an option to work with the “excel sheet” of clones, very simplified said. There one can ask the current MODATA state and write those back.
https://developers.maxon.net/docs/Cinema4DPythonSDK/html/modules/c4d.modules/mograph/index.html

.

Please check out this file, since it is for visuals only, the open/close is not fixed, as an animation of this should have the open data fixed and when the next day starts the close of the previous should freeze, hence my question above. For pure aesthetics, this should work. Perhaps split the Open/Close and High/Low, to have less steps with the O/C but more play with the H/L, while keeping the Noise shader for both, so the H/L is always larger than the O/C.

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

I think that is the simplest way to do it, so far …  (the transparency could be Effector based, as in “visible”.)

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: 21 August 2017 07:35 PM   [ Ignore ]   [ # 5 ]  
Total Posts:  60
Joined  2017-01-05

ok!  i got some python magic going like you recommended.  I a little stuck:

-how do i create a mograph fracture object with python and then put the results inside of it on execution?
-also, is there a way to apply materials onto an object through python?

thanks for your help!!

File Attachments
candleStick_02.zip  (File Size: 73KB - Downloads: 64)
Profile
 
 
Posted: 21 August 2017 08:04 PM   [ Ignore ]   [ # 6 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

Hi SethO,

Sorry, that was meant as an XPresso explanation and hint, not that you go with Python if that is new to you. BTW, I had the Python Effector in mind, not the Generator. We seemed to have gotten quite the misunderstanding here, sorry about that.

For Python support please check the
https://developers.maxon.net/?page_id=1114
Anyway, since I write in a public forum, let me add this, a savvy idea of the principals of “Standard” Python should be given before asking C4D based support there (link above). I can suggest some books about Python if you like . I’m not even certain if the “1on1” offer from MAXON would contain Python for starters as an offer.

Is the suggestion I gave you in post #4 not working?

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: 21 August 2017 09:26 PM   [ Ignore ]   [ # 7 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

P.S.: perhaps that works more in the way you have described it.

Scene File
https://www.amazon.com/clouddrive/share/6pMCrxPJVXGh82riOLFhwLlsioJGkvn1JM934J6luo7

The scale of the Noise is directly connected to the change in the scene over distance.
I have split this time the two elements, so an easier way to handle the Material is given.

 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