<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="http://stopstogo.com/dokuwiki/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://stopstogo.com/dokuwiki/feed.php">
        <title>Dan's Wiki projects:houseofcards</title>
        <description></description>
        <link>http://stopstogo.com/dokuwiki/</link>
        <image rdf:resource="http://stopstogo.com/dokuwiki/lib/tpl/dokuwiki/images/favicon.ico" />
       <dc:date>2026-04-04T14:10:38+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://stopstogo.com/dokuwiki/doku.php?id=projects:houseofcards:blenderarraynumbering&amp;rev=1468542460&amp;do=diff"/>
                <rdf:li rdf:resource="http://stopstogo.com/dokuwiki/doku.php?id=projects:houseofcards:cardfaceinfo&amp;rev=1468789908&amp;do=diff"/>
                <rdf:li rdf:resource="http://stopstogo.com/dokuwiki/doku.php?id=projects:houseofcards:physicssettings&amp;rev=1469124871&amp;do=diff"/>
                <rdf:li rdf:resource="http://stopstogo.com/dokuwiki/doku.php?id=projects:houseofcards:playingcardspecifics&amp;rev=1511029201&amp;do=diff"/>
                <rdf:li rdf:resource="http://stopstogo.com/dokuwiki/doku.php?id=projects:houseofcards:pythonoperators&amp;rev=1467434598&amp;do=diff"/>
                <rdf:li rdf:resource="http://stopstogo.com/dokuwiki/doku.php?id=projects:houseofcards:shufflecards&amp;rev=1468547580&amp;do=diff"/>
                <rdf:li rdf:resource="http://stopstogo.com/dokuwiki/doku.php?id=projects:houseofcards:start&amp;rev=1511028225&amp;do=diff"/>
                <rdf:li rdf:resource="http://stopstogo.com/dokuwiki/doku.php?id=projects:houseofcards:workingpython&amp;rev=1469121587&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://stopstogo.com/dokuwiki/lib/tpl/dokuwiki/images/favicon.ico">
        <title>Dan's Wiki</title>
        <link>http://stopstogo.com/dokuwiki/</link>
        <url>http://stopstogo.com/dokuwiki/lib/tpl/dokuwiki/images/favicon.ico</url>
    </image>
    <item rdf:about="http://stopstogo.com/dokuwiki/doku.php?id=projects:houseofcards:blenderarraynumbering&amp;rev=1468542460&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2016-07-15T00:27:40+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>projects:houseofcards:blenderarraynumbering</title>
        <link>http://stopstogo.com/dokuwiki/doku.php?id=projects:houseofcards:blenderarraynumbering&amp;rev=1468542460&amp;do=diff</link>
        <description>Blender Array Numbering

Since we are calculating the matrix of cards, we need to know how Blender names the multiple copies.

I started with a Card, and then made an array of 10 - along the X axis. Then added another modifier and made an array of 6 - along the Y axis.</description>
    </item>
    <item rdf:about="http://stopstogo.com/dokuwiki/doku.php?id=projects:houseofcards:cardfaceinfo&amp;rev=1468789908&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2016-07-17T21:11:48+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>projects:houseofcards:cardfaceinfo</title>
        <link>http://stopstogo.com/dokuwiki/doku.php?id=projects:houseofcards:cardfaceinfo&amp;rev=1468789908&amp;do=diff</link>
        <description>Card Face Info

To create the house of cards, need to map the card face graphic to cards, cyclically, or randomly. I have this card face graphic:

	*  C:\Projects\HouseOfCards\cardsNoBorder.png

Overall size is 2904×1622.

Need to make a function:


Upper left corner (zero-based):
   x = rank * 223.4
   y = suit number * 324

- Rank: 0 to 12 is Ace through King
- Suite: 0 to 3 is clubs, diamonds, hearts, spades. 
- Suite number 4 has 0=Black Joker, 1 = Red Joker, 2 = card back

Size is 223x324</description>
    </item>
    <item rdf:about="http://stopstogo.com/dokuwiki/doku.php?id=projects:houseofcards:physicssettings&amp;rev=1469124871&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2016-07-21T18:14:31+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>projects:houseofcards:physicssettings</title>
        <link>http://stopstogo.com/dokuwiki/doku.php?id=projects:houseofcards:physicssettings&amp;rev=1469124871&amp;do=diff</link>
        <description>Physics Settings

Having trouble getting consistent Card House behavior. When I make a simple 2-D array of cards, it falls. Trying to find proper settings so that cards will sit properly until impacted.

This setting causes less jitter, and cards don't fall through the base:</description>
    </item>
    <item rdf:about="http://stopstogo.com/dokuwiki/doku.php?id=projects:houseofcards:playingcardspecifics&amp;rev=1511029201&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-11-18T18:20:01+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>projects:houseofcards:playingcardspecifics</title>
        <link>http://stopstogo.com/dokuwiki/doku.php?id=projects:houseofcards:playingcardspecifics&amp;rev=1511029201&amp;do=diff</link>
        <description>Playing Card Specifics

Playing Card Dimensions

Source: &lt;https://en.wikipedia.org/wiki/Standard_52-card_deck&gt;
DimensionPokerBridgeHeight3.5“3.5”Width2.5“2.25”Thickness.24 - .34mm
0.00944882 - 0.0133858 in..26 - .34 mm
0.0102362 - 0.0133858 in.Weight1.4 - 2.78 g1.8 - 2.48 g
So for the purposes of this project, using 2.5</description>
    </item>
    <item rdf:about="http://stopstogo.com/dokuwiki/doku.php?id=projects:houseofcards:pythonoperators&amp;rev=1467434598&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2016-07-02T04:43:18+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>projects:houseofcards:pythonoperators</title>
        <link>http://stopstogo.com/dokuwiki/doku.php?id=projects:houseofcards:pythonoperators&amp;rev=1467434598&amp;do=diff</link>
        <description>Python Operators from Blender



# 1673 Operators

# Simplify F-Curves by removing closely spaced keyframes
bpy.ops.action.clean(threshold=0.001, channels=False)
# Select keyframes by clicking on them
bpy.ops.action.clickselect(extend=False, column=False, channel=False)
# Copy selected keyframes to the copy/paste buffer
bpy.ops.action.copy()
# Remove all selected keyframes
bpy.ops.action.delete()
# Make a copy of all selected keyframes
bpy.ops.action.duplicate()
# Make a copy of all selected key…</description>
    </item>
    <item rdf:about="http://stopstogo.com/dokuwiki/doku.php?id=projects:houseofcards:shufflecards&amp;rev=1468547580&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2016-07-15T01:53:00+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>projects:houseofcards:shufflecards</title>
        <link>http://stopstogo.com/dokuwiki/doku.php?id=projects:houseofcards:shufflecards&amp;rev=1468547580&amp;do=diff</link>
        <description>Python Shuffle Cards Routine

&lt;http://www.programiz.com/python-programming/examples/shuffle-card&gt;


# Python program to shuffle a deck of card using the module random and draw 5 cards

# import modules
import itertools, random

# make a deck of cards
deck = list(itertools.product(range(1,14),['Spade','Heart','Diamond','Club']))

# shuffle the cards
random.shuffle(deck)

# draw five cards
print(&quot;You got:&quot;)
for i in range(5):
   print(deck[i][0], &quot;of&quot;, deck[i][1])</description>
    </item>
    <item rdf:about="http://stopstogo.com/dokuwiki/doku.php?id=projects:houseofcards:start&amp;rev=1511028225&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-11-18T18:03:45+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>projects:houseofcards:start</title>
        <link>http://stopstogo.com/dokuwiki/doku.php?id=projects:houseofcards:start&amp;rev=1511028225&amp;do=diff</link>
        <description>House of Cards Blender Project

Wanting to make a huge virtual house of cards and placing a large picture, tiling across certain panels of the cards. Need to UV map to portion of a big graphic with Python scripting.

Initial proof of concept jittered. Fixed by changing Scene</description>
    </item>
    <item rdf:about="http://stopstogo.com/dokuwiki/doku.php?id=projects:houseofcards:workingpython&amp;rev=1469121587&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2016-07-21T17:19:47+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>projects:houseofcards:workingpython</title>
        <link>http://stopstogo.com/dokuwiki/doku.php?id=projects:houseofcards:workingpython&amp;rev=1469121587&amp;do=diff</link>
        <description>Working Python Script - Spread Picture, and set card faces

The original code is at c:\projects\HouseOfCards\pythonscript.txt


import bpy
import itertools
import random

bpy.ops.object.mode_set(mode='OBJECT')

cardPointer = 53 # start past the start of the deck
cardDeck = []

# ob = bpy.data.objects[&quot;Panel&quot;];
# me = ob.data;

# This is from pythonScript.txt.
print (&quot;\n\n&quot;) # some space


def getObjectNameAndUVCoordinatesFromOrdinal(ord, quantityX, quantityY, prefix=&quot;Panel&quot;, reverseX=False):
   …</description>
    </item>
</rdf:RDF>
